diff options
author | Owen Anderson <resistor@mac.com> | 2012-11-27 00:53:24 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2012-11-27 00:53:24 +0000 |
commit | 9780d352b9108d49097970f6686fd61aba58d7fc (patch) | |
tree | 505571eeebc1e4a3d2487ac867ab3c218f947dc4 /tools/lto | |
parent | 6f6b97daf67ba017e5a10125551d5bd39dd80830 (diff) | |
download | external_llvm-9780d352b9108d49097970f6686fd61aba58d7fc.zip external_llvm-9780d352b9108d49097970f6686fd61aba58d7fc.tar.gz external_llvm-9780d352b9108d49097970f6686fd61aba58d7fc.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index b1c4f43..d9fa218 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/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(); |