diff options
author | Pedro Artigas <partigas@apple.com> | 2012-11-29 17:47:05 +0000 |
---|---|---|
committer | Pedro Artigas <partigas@apple.com> | 2012-11-29 17:47:05 +0000 |
commit | 6eda0813459547fe8094dd5d31f7dd2214b5ca7a (patch) | |
tree | f05390ab9a1da2f03cbe8195d4e4c49968c43091 /tools/lto | |
parent | 6a144e40b059735cd8e701f382680fc1725954bf (diff) | |
download | external_llvm-6eda0813459547fe8094dd5d31f7dd2214b5ca7a.zip external_llvm-6eda0813459547fe8094dd5d31f7dd2214b5ca7a.tar.gz external_llvm-6eda0813459547fe8094dd5d31f7dd2214b5ca7a.tar.bz2 |
One more step towards making doInitialization and doFinalization useful for
start up and clean up module passes, now that ASAN and TSAN are fixed the
tests pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/LTOCodeGenerator.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/tools/lto/LTOCodeGenerator.cpp b/tools/lto/LTOCodeGenerator.cpp index d9fa218..b1c4f43 100644 --- a/tools/lto/LTOCodeGenerator.cpp +++ b/tools/lto/LTOCodeGenerator.cpp @@ -342,9 +342,7 @@ void LTOCodeGenerator::applyScopeRestrictions() { passes.add(createInternalizePass(mustPreserveList)); // apply scope restrictions - passes.doInitialization(); passes.run(*mergedModule); - passes.doFinalization(); _scopeRestrictionsDone = true; } @@ -399,9 +397,7 @@ 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(); |