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
This commit is contained in:
Tom Stellard 2014-06-13 01:31:56 +00:00
parent a20bcb9969
commit ee0f3892f9

View File

@ -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);