1//===- MipsTargetMachine.h ------------------------------------------------===// 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#ifndef MIPS_TARGET_MACHINE_H 10#define MIPS_TARGET_MACHINE_H 11#include "mcld/Target/TargetMachine.h" 12#include "Mips.h" 13 14namespace mcld 15{ 16 17class MipsBaseTargetMachine : public LLVMTargetMachine 18{ 19protected: 20 MCLDInfo *m_pLDInfo; 21 22public: 23 MipsBaseTargetMachine(llvm::TargetMachine &pTM, 24 const mcld::Target &pTarget, 25 const std::string &pTriple); 26 27 virtual ~MipsBaseTargetMachine(); 28 29 mcld::MCLDInfo& getLDInfo() 30 { return *m_pLDInfo; } 31 32 const mcld::MCLDInfo& getLDInfo() const 33 { return *m_pLDInfo; } 34}; 35 36} // namespace of mcld 37 38#endif 39