mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Get the cached subtarget off the MachineFunction rather than
inquiring for a new one from the TargetMachine. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229999 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -93,7 +93,7 @@ unsigned ARMInstrInfo::getUnindexedOpcode(unsigned Opc) const {
|
||||
void ARMInstrInfo::expandLoadStackGuard(MachineBasicBlock::iterator MI,
|
||||
Reloc::Model RM) const {
|
||||
MachineFunction &MF = *MI->getParent()->getParent();
|
||||
const ARMSubtarget &Subtarget = MF.getTarget().getSubtarget<ARMSubtarget>();
|
||||
const ARMSubtarget &Subtarget = MF.getSubtarget<ARMSubtarget>();
|
||||
|
||||
if (!Subtarget.useMovt(MF)) {
|
||||
if (RM == Reloc::PIC_)
|
||||
|
Reference in New Issue
Block a user