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/ARMFrameLowering.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/ARMFrameLowering.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMFrameLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMFrameLowering.cpp b/llvm/lib/Target/ARM/ARMFrameLowering.cpp index 62e17ad89f7..5a5bd574aca 100644 --- a/llvm/lib/Target/ARM/ARMFrameLowering.cpp +++ b/llvm/lib/Target/ARM/ARMFrameLowering.cpp @@ -1864,7 +1864,7 @@ static const uint64_t kSplitStackAvailable = 256; void ARMFrameLowering::adjustForSegmentedStacks(MachineFunction &MF) const { unsigned Opcode; unsigned CFIIndex; - const ARMSubtarget *ST = &MF.getTarget().getSubtarget<ARMSubtarget>(); + const ARMSubtarget *ST = &MF.getSubtarget<ARMSubtarget>(); bool Thumb = ST->isThumb(); // Sadly, this currently doesn't support varargs, platforms other than |