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