summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMTargetMachine.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-06-19 20:51:24 +0000
committerBill Wendling <isanbard@gmail.com>2013-06-19 20:51:24 +0000
commitafc1036f3e4c66261800f4ea896cd393a079a1a3 (patch)
tree019c14650310f4d08ecb2c50af95cb84d681696a /llvm/lib/Target/ARM/ARMTargetMachine.cpp
parent6eed5c4c45aa00409c370098d402300a1610c067 (diff)
downloadbcm5719-llvm-afc1036f3e4c66261800f4ea896cd393a079a1a3.tar.gz
bcm5719-llvm-afc1036f3e4c66261800f4ea896cd393a079a1a3.zip
Access the TargetLoweringInfo from the TargetMachine object instead of caching it. The TLI may change between functions. No functionality change.
llvm-svn: 184349
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMTargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetMachine.cpp b/llvm/lib/Target/ARM/ARMTargetMachine.cpp
index 17c52c94a06..d9aef78561b 100644
--- a/llvm/lib/Target/ARM/ARMTargetMachine.cpp
+++ b/llvm/lib/Target/ARM/ARMTargetMachine.cpp
@@ -60,7 +60,7 @@ void ARMBaseTargetMachine::addAnalysisPasses(PassManagerBase &PM) {
// Add first the target-independent BasicTTI pass, then our ARM pass. This
// allows the ARM pass to delegate to the target independent layer when
// appropriate.
- PM.add(createBasicTargetTransformInfoPass(getTargetLowering()));
+ PM.add(createBasicTargetTransformInfoPass(this));
PM.add(createARMTargetTransformInfoPass(this));
}
OpenPOWER on IntegriCloud