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 #include "Mips.h" 11 #include <mcld/Support/TargetRegistry.h> 12 13 typedef mcld::RegisterTargetMachine<mcld::MipsBaseTargetMachine> RegMipsTarget; 14 15 extern "C" void MCLDInitializeMipsLDTarget() { 16 RegMipsTarget X1(mcld::TheMipselTarget); 17 RegMipsTarget X2(mcld::TheMips64elTarget); 18 } 19 20 using namespace mcld; 21 22 //===----------------------------------------------------------------------===// 23 // MipsBaseTargetMachine 24 //===----------------------------------------------------------------------===// 25 MipsBaseTargetMachine::MipsBaseTargetMachine(llvm::TargetMachine& pPM, 26 const llvm::Target &pLLVMTarget, 27 const mcld::Target &pMCLDTarget, 28 const std::string& pTriple) 29 : MCLDTargetMachine(pPM, pLLVMTarget, pMCLDTarget, pTriple) { 30 } 31