From ee0f3892f9102199e5bf1037d766dc6ba8116405 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 13 Jun 2014 01:31:56 +0000 Subject: R600: Drop use of cached TargetMachine in R600InstrInfo.cpp git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210868 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/R600/R600InstrInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/Target/R600/R600InstrInfo.cpp b/lib/Target/R600/R600InstrInfo.cpp index b0d9ae3e70..fc3c2c55da 100644 --- a/lib/Target/R600/R600InstrInfo.cpp +++ b/lib/Target/R600/R600InstrInfo.cpp @@ -1067,7 +1067,8 @@ unsigned int R600InstrInfo::getInstrLatency(const InstrItineraryData *ItinData, void R600InstrInfo::reserveIndirectRegisters(BitVector &Reserved, const MachineFunction &MF) const { const AMDGPUFrameLowering *TFL = - static_cast(TM.getFrameLowering()); + static_cast( + MF.getTarget().getFrameLowering()); unsigned StackWidth = TFL->getStackWidth(MF); int End = getIndirectIndexEnd(MF); -- cgit v1.2.3