From 6cf9da3d85f2aae7dfef8c4565b733fa8ae5211a 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203517 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/SIInstrInfo.cpp | 7 +------ lib/Target/R600/SIInstrInfo.h | 4 +++- 2 files changed, 4 insertions(+), 7 deletions(-) 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,