LTO: Also init TTI for codegen passes.

llvm-svn: 172499
This commit is contained in:
Nadav Rotem 2013-01-15 01:53:57 +00:00
parent dedba23833
commit c0a3872856

View File

@ -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);