[llvm] r210868 - R600: Drop use of cached TargetMachine in R600InstrInfo.cpp

Tom Stellard thomas.stellard at amd.com
Thu Jun 12 18:31:57 PDT 2014


Author: tstellar
Date: Thu Jun 12 20:31:56 2014
New Revision: 210868

URL: http://llvm.org/viewvc/llvm-project?rev=210868&view=rev
Log:
R600: Drop use of cached TargetMachine in R600InstrInfo.cpp

Modified:
    llvm/trunk/lib/Target/R600/R600InstrInfo.cpp

Modified: llvm/trunk/lib/Target/R600/R600InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600InstrInfo.cpp?rev=210868&r1=210867&r2=210868&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600InstrInfo.cpp Thu Jun 12 20:31:56 2014
@@ -1067,7 +1067,8 @@ unsigned int R600InstrInfo::getInstrLate
 void  R600InstrInfo::reserveIndirectRegisters(BitVector &Reserved,
                                              const MachineFunction &MF) const {
   const AMDGPUFrameLowering *TFL =
-                 static_cast<const AMDGPUFrameLowering*>(TM.getFrameLowering());
+    static_cast<const AMDGPUFrameLowering*>(
+    MF.getTarget().getFrameLowering());
 
   unsigned StackWidth = TFL->getStackWidth(MF);
   int End = getIndirectIndexEnd(MF);





More information about the llvm-commits mailing list