1 //===- AArch64TargetMachine.cpp -------------------------------------------===// 2 // 3 // The MCLinker Project 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 #include "AArch64TargetMachine.h" 10 #include "AArch64.h" 11 12 #include <mcld/Support/TargetRegistry.h> 13 14 using namespace mcld; 15 AArch64BaseTargetMachine(llvm::TargetMachine & pPM,const llvm::Target & pLLVMTarget,const mcld::Target & pMCLDTarget,const std::string & pTriple)16AArch64BaseTargetMachine::AArch64BaseTargetMachine(llvm::TargetMachine& pPM, 17 const llvm::Target &pLLVMTarget, 18 const mcld::Target &pMCLDTarget, 19 const std::string& pTriple) 20 : MCLDTargetMachine(pPM, pLLVMTarget, pMCLDTarget, pTriple) { 21 } 22 23 //===----------------------------------------------------------------------===// 24 // Initialize MCLDTargetMachine 25 //===----------------------------------------------------------------------===// MCLDInitializeAArch64LDTarget()26extern "C" void MCLDInitializeAArch64LDTarget() { 27 // Register createTargetMachine function pointer to mcld::Target 28 mcld::RegisterTargetMachine<mcld::AArch64BaseTargetMachine> X(mcld::TheAArch64Target); 29 } 30 31