diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-06-19 21:07:11 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-06-19 21:07:11 +0000 |
commit | f9fd58a44bbc7d9371ce39eb20eec16b0f1f7395 (patch) | |
tree | 3aa6bc4754eb7256002fd51bb3e65790051cd291 /lib/Target/ARM | |
parent | 4655485eb7dc1d137595149b9bd58eb73e11bb19 (diff) | |
download | external_llvm-f9fd58a44bbc7d9371ce39eb20eec16b0f1f7395.zip external_llvm-f9fd58a44bbc7d9371ce39eb20eec16b0f1f7395.tar.gz external_llvm-f9fd58a44bbc7d9371ce39eb20eec16b0f1f7395.tar.bz2 |
Access the TargetLoweringInfo from the TargetMachine object instead of caching it. The TLI may change between functions. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index d9aef78..354a779 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -150,7 +150,7 @@ TargetPassConfig *ARMBaseTargetMachine::createPassConfig(PassManagerBase &PM) { bool ARMPassConfig::addPreISel() { if (TM->getOptLevel() != CodeGenOpt::None && EnableGlobalMerge) - addPass(createGlobalMergePass(TM->getTargetLowering())); + addPass(createGlobalMergePass(TM)); return false; } |