Move trivial getter into header.

llvm-svn: 203517
This commit is contained in:
Matt Arsenault 2014-03-11 00:01:34 +00:00
parent 9504d2f269
commit 6dde30354a
2 changed files with 4 additions and 7 deletions

View File

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

View File

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