mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-03 18:32:50 +00:00
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:
parent
a20bcb9969
commit
ee0f3892f9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user