From: Matt Arsenault Date: Tue, 11 Mar 2014 00:01:34 +0000 (+0000) Subject: Move trivial getter into header. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6cf9da3d85f2aae7dfef8c4565b733fa8ae5211a;p=oota-llvm.git Move trivial getter into header. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203517 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/SIInstrInfo.cpp b/lib/Target/R600/SIInstrInfo.cpp index a239fb92f35..89054182d45 100644 --- a/lib/Target/R600/SIInstrInfo.cpp +++ b/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/lib/Target/R600/SIInstrInfo.h b/lib/Target/R600/SIInstrInfo.h index de3ff073304..49f214c6723 100644 --- a/lib/Target/R600/SIInstrInfo.h +++ b/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,