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