diff options
author | Eric Christopher <echristo@gmail.com> | 2015-02-20 08:24:37 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-02-20 08:24:37 +0000 |
commit | 22b2ad265f22707a740ec950a73afb90ccdf0f9a (patch) | |
tree | 1a3876228cc0b31a89d5ccb91446358d2d1a5522 /llvm/lib/Target/ARM/ARMInstrInfo.cpp | |
parent | 155290edf9944ef4a55843440ab0fff0c51581bf (diff) | |
download | bcm5719-llvm-22b2ad265f22707a740ec950a73afb90ccdf0f9a.tar.gz bcm5719-llvm-22b2ad265f22707a740ec950a73afb90ccdf0f9a.zip |
Get the cached subtarget off the MachineFunction rather than
inquiring for a new one from the TargetMachine.
llvm-svn: 229999
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.cpp b/llvm/lib/Target/ARM/ARMInstrInfo.cpp index 9ef2204a87f..bc617f08743 100644 --- a/llvm/lib/Target/ARM/ARMInstrInfo.cpp +++ b/llvm/lib/Target/ARM/ARMInstrInfo.cpp @@ -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_) |