summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-02-20 08:24:37 +0000
committerEric Christopher <echristo@gmail.com>2015-02-20 08:24:37 +0000
commit22b2ad265f22707a740ec950a73afb90ccdf0f9a (patch)
tree1a3876228cc0b31a89d5ccb91446358d2d1a5522 /llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
parent155290edf9944ef4a55843440ab0fff0c51581bf (diff)
downloadbcm5719-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/ARMISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 6410b338238..77464bd47ea 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -70,7 +70,7 @@ public:
bool runOnMachineFunction(MachineFunction &MF) override {
// Reset the subtarget each time through.
- Subtarget = &MF.getTarget().getSubtarget<ARMSubtarget>();
+ Subtarget = &MF.getSubtarget<ARMSubtarget>();
SelectionDAGISel::runOnMachineFunction(MF);
return true;
}
OpenPOWER on IntegriCloud