1 //===- HexagonTargetMachine.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 "HexagonTargetMachine.h" 10 #include "Hexagon.h" 11 #include <mcld/Support/TargetRegistry.h> 12 MCLDInitializeHexagonLDTarget()13extern "C" void MCLDInitializeHexagonLDTarget() { 14 // Register createTargetMachine function pointer to mcld::Target 15 mcld::RegisterTargetMachine<mcld::HexagonTargetMachine> 16 X(mcld::TheHexagonTarget); 17 } 18 19 using namespace mcld; 20 21 //===----------------------------------------------------------------------===// 22 // HexagonTargetMachine 23 //===----------------------------------------------------------------------===// HexagonTargetMachine(llvm::TargetMachine & pPM,const llvm::Target & pLLVMTarget,const mcld::Target & pMCLDTarget,const std::string & pTriple)24HexagonTargetMachine::HexagonTargetMachine(llvm::TargetMachine& pPM, 25 const llvm::Target& pLLVMTarget, 26 const mcld::Target& pMCLDTarget, 27 const std::string& pTriple) 28 : MCLDTargetMachine(pPM, pLLVMTarget, pMCLDTarget, pTriple) { 29 } 30