mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-01 07:30:31 +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();
|
||||
TII = Fn.getSubtarget().getInstrInfo();
|
||||
TRI = Fn.getSubtarget().getRegisterInfo();
|
||||
STI = &Fn.getTarget().getSubtarget<ARMSubtarget>();
|
||||
STI = &static_cast<const ARMSubtarget &>(Fn.getSubtarget());
|
||||
MRI = &Fn.getRegInfo();
|
||||
MF = &Fn;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user