mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Grab the subtarget info off of the MachineFunction rather than
indirecting through the TargetMachine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ff9182749e
commit
0ba4483d01
@ -1853,7 +1853,7 @@ bool ARMPreAllocLoadStoreOpt::runOnMachineFunction(MachineFunction &Fn) {
|
|||||||
TD = Fn.getSubtarget().getDataLayout();
|
TD = Fn.getSubtarget().getDataLayout();
|
||||||
TII = Fn.getSubtarget().getInstrInfo();
|
TII = Fn.getSubtarget().getInstrInfo();
|
||||||
TRI = Fn.getSubtarget().getRegisterInfo();
|
TRI = Fn.getSubtarget().getRegisterInfo();
|
||||||
STI = &Fn.getTarget().getSubtarget<ARMSubtarget>();
|
STI = &static_cast<const ARMSubtarget &>(Fn.getSubtarget());
|
||||||
MRI = &Fn.getRegInfo();
|
MRI = &Fn.getRegInfo();
|
||||||
MF = &Fn;
|
MF = &Fn;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user