summaryrefslogtreecommitdiffstats
path: root/llvm/tools/lto
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2012-11-27 00:53:24 +0000
committerOwen Anderson <resistor@mac.com>2012-11-27 00:53:24 +0000
commit1db12f51353680685b8c30785188dca85c53c0b6 (patch)
treea47fd1c68eafd55362a468718b2621b2a80c5123 /llvm/tools/lto
parent8ec03f5b54fad5ea337b31cce318dc8214b25447 (diff)
downloadbcm5719-llvm-1db12f51353680685b8c30785188dca85c53c0b6.tar.gz
bcm5719-llvm-1db12f51353680685b8c30785188dca85c53c0b6.zip
Revert r168635 "Step towards implementation of pass manager with doInitialization and doFinalization per module detangled from runOn?? calls, still has temporary code not to break ASAN to be removed when that pass conforms to the proposed model".
It appears to have broken at least one buildbot. llvm-svn: 168654
Diffstat (limited to 'llvm/tools/lto')
-rw-r--r--llvm/tools/lto/LTOCodeGenerator.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/lto/LTOCodeGenerator.cpp b/llvm/tools/lto/LTOCodeGenerator.cpp
index b1c4f437ffb..d9fa218b92f 100644
--- a/llvm/tools/lto/LTOCodeGenerator.cpp
+++ b/llvm/tools/lto/LTOCodeGenerator.cpp
@@ -342,7 +342,9 @@ void LTOCodeGenerator::applyScopeRestrictions() {
passes.add(createInternalizePass(mustPreserveList));
// apply scope restrictions
+ passes.doInitialization();
passes.run(*mergedModule);
+ passes.doFinalization();
_scopeRestrictionsDone = true;
}
@@ -397,7 +399,9 @@ bool LTOCodeGenerator::generateObjectFile(raw_ostream &out,
}
// Run our queue of passes all at once now, efficiently.
+ passes.doInitialization();
passes.run(*mergedModule);
+ passes.doFinalization();
// Run the code generator, and write assembly file
codeGenPasses->doInitialization();
OpenPOWER on IntegriCloud