[llvm] r203517 - Move trivial getter into header.
Matt Arsenault
Matthew.Arsenault at amd.com
Mon Mar 10 17:01:34 PDT 2014
Author: arsenm
Date: Mon Mar 10 19:01:34 2014
New Revision: 203517
URL: http://llvm.org/viewvc/llvm-project?rev=203517&view=rev
Log:
Move trivial getter into header.
Modified:
llvm/trunk/lib/Target/R600/SIInstrInfo.cpp
llvm/trunk/lib/Target/R600/SIInstrInfo.h
Modified: llvm/trunk/lib/Target/R600/SIInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstrInfo.cpp?rev=203517&r1=203516&r2=203517&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/SIInstrInfo.cpp Mon Mar 10 19:01:34 2014
@@ -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
Modified: llvm/trunk/lib/Target/R600/SIInstrInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstrInfo.h?rev=203517&r1=203516&r2=203517&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/SIInstrInfo.h (original)
+++ llvm/trunk/lib/Target/R600/SIInstrInfo.h Mon Mar 10 19:01:34 2014
@@ -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,
More information about the llvm-commits
mailing list