mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-03 00:01:39 +00:00
LTO: Also init TTI for codegen passes.
llvm-svn: 172499
This commit is contained in:
parent
dedba23833
commit
c0a3872856
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user