1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

R600: Drop use of cached TargetMachine in R600InstrInfo.cpp

llvm-svn: 210868
This commit is contained in:
Tom Stellard 2014-06-13 01:31:56 +00:00
parent e726a14d05
commit 3e20fabeaf

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