summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-06-13 01:31:56 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-06-13 01:31:56 +0000
commitee0f3892f9102199e5bf1037d766dc6ba8116405 (patch)
tree0dfefe7fc7cfd8f6640f561d2d70be6bdca9c564 /lib
parenta20bcb9969aa4f0d989e8f039d6af3a43357d310 (diff)
downloadllvm-ee0f3892f9102199e5bf1037d766dc6ba8116405.tar.gz
llvm-ee0f3892f9102199e5bf1037d766dc6ba8116405.tar.bz2
llvm-ee0f3892f9102199e5bf1037d766dc6ba8116405.tar.xz
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/R600/R600InstrInfo.cpp3
1 files changed, 2 insertions, 1 deletions
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<const AMDGPUFrameLowering*>(TM.getFrameLowering());
+ static_cast<const AMDGPUFrameLowering*>(
+ MF.getTarget().getFrameLowering());
unsigned StackWidth = TFL->getStackWidth(MF);
int End = getIndirectIndexEnd(MF);