aboutsummaryrefslogtreecommitdiff
path: root/tools/lto
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-01-15 01:53:57 +0000
committerNadav Rotem <nrotem@apple.com>2013-01-15 01:53:57 +0000
commit1c1ff3b7ff3b473acd1b92970ceeed3c62fbee5a (patch)
tree9a7054d5641e340fb246e90504e46c9d49c05a4d /tools/lto
parent8dd938ed179267b2a3a5206c78e89530967f45a5 (diff)
LTO: Also init TTI for codegen passes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r--tools/lto/LTOCodeGenerator.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp
index e87b378106..477bd2de06 100644
--- a/tools/lto/LTOCodeGenerator.cpp
+++ b/tools/lto/LTOCodeGenerator.cpp
@@ -387,6 +387,7 @@ bool LTOCodeGenerator::generateObjectFile(raw_ostream &out,
FunctionPassManager *codeGenPasses = new FunctionPassManager(mergedModule);
codeGenPasses->add(new DataLayout(*_target->getDataLayout()));
+ _target->addAnalysisPasses(*codeGenPasses);
formatted_raw_ostream Out(out);