Move trivial getter into header.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203517 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault 2014-03-11 00:01:34 +00:00
parent cc1240ee1b
commit 6cf9da3d85
2 changed files with 4 additions and 7 deletions

View File

@ -25,12 +25,7 @@ using namespace llvm;
SIInstrInfo::SIInstrInfo(AMDGPUTargetMachine &tm) SIInstrInfo::SIInstrInfo(AMDGPUTargetMachine &tm)
: AMDGPUInstrInfo(tm), : AMDGPUInstrInfo(tm),
RI(tm) RI(tm) { }
{ }
const SIRegisterInfo &SIInstrInfo::getRegisterInfo() const {
return RI;
}
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// TargetInstrInfo callbacks // TargetInstrInfo callbacks

View File

@ -36,7 +36,9 @@ private:
public: public:
explicit SIInstrInfo(AMDGPUTargetMachine &tm); explicit SIInstrInfo(AMDGPUTargetMachine &tm);
const SIRegisterInfo &getRegisterInfo() const; const SIRegisterInfo &getRegisterInfo() const {
return RI;
}
virtual void copyPhysReg(MachineBasicBlock &MBB, virtual void copyPhysReg(MachineBasicBlock &MBB,
MachineBasicBlock::iterator MI, DebugLoc DL, MachineBasicBlock::iterator MI, DebugLoc DL,