diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2014-06-13 01:31:56 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2014-06-13 01:31:56 +0000 |
commit | ee0f3892f9102199e5bf1037d766dc6ba8116405 (patch) | |
tree | 0dfefe7fc7cfd8f6640f561d2d70be6bdca9c564 /lib | |
parent | a20bcb9969aa4f0d989e8f039d6af3a43357d310 (diff) | |
download | llvm-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.cpp | 3 |
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); |