From 6dde30354ac5a190d9fc43de6586d54c44c11e8e Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 11 Mar 2014 00:01:34 +0000 Subject: [PATCH] Move trivial getter into header. llvm-svn: 203517 --- llvm/lib/Target/R600/SIInstrInfo.cpp | 7 +------ llvm/lib/Target/R600/SIInstrInfo.h | 4 +++- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/llvm/lib/Target/R600/SIInstrInfo.cpp b/llvm/lib/Target/R600/SIInstrInfo.cpp index a239fb92f35a..89054182d45b 100644 --- a/llvm/lib/Target/R600/SIInstrInfo.cpp +++ b/llvm/lib/Target/R600/SIInstrInfo.cpp @@ -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 diff --git a/llvm/lib/Target/R600/SIInstrInfo.h b/llvm/lib/Target/R600/SIInstrInfo.h index de3ff0733043..49f214c6723e 100644 --- a/llvm/lib/Target/R600/SIInstrInfo.h +++ b/llvm/lib/Target/R600/SIInstrInfo.h @@ -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,