diff options
author | Bill Wendling <isanbard@gmail.com> | 2013-06-19 20:51:24 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2013-06-19 20:51:24 +0000 |
commit | ea44281d5da5096de50ce1cb358ff0c6f20e1a2a (patch) | |
tree | e5921b602a2747efb334a9b13b94d5f090c779fb /lib/Target/X86/X86TargetMachine.cpp | |
parent | 2e1dc2d2650c64f8fa57d12eb194dcf57e85ebb7 (diff) | |
download | external_llvm-ea44281d5da5096de50ce1cb358ff0c6f20e1a2a.zip external_llvm-ea44281d5da5096de50ce1cb358ff0c6f20e1a2a.tar.gz external_llvm-ea44281d5da5096de50ce1cb358ff0c6f20e1a2a.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@184349 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | lib/Target/X86/X86TargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86TargetMachine.cpp b/lib/Target/X86/X86TargetMachine.cpp index 0422a61..49ebd1a 100644 --- a/lib/Target/X86/X86TargetMachine.cpp +++ b/lib/Target/X86/X86TargetMachine.cpp @@ -132,7 +132,7 @@ void X86TargetMachine::addAnalysisPasses(PassManagerBase &PM) { // Add first the target-independent BasicTTI pass, then our X86 pass. This // allows the X86 pass to delegate to the target independent layer when // appropriate. - PM.add(createBasicTargetTransformInfoPass(getTargetLowering())); + PM.add(createBasicTargetTransformInfoPass(this)); PM.add(createX86TargetTransformInfoPass(this)); } |