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
This commit is contained in:
Pedro Artigas
2012-11-29 17:47:05 +00:00
parent 6a144e40b0
commit 6eda081345
11 changed files with 19 additions and 84 deletions

View File

@@ -276,9 +276,7 @@ int main(int argc, char **argv) {
else if (Force || !CheckBitcodeOutputToConsole(Out.os(), true))
Passes.add(createBitcodeWriterPass(Out.os()));
Passes.doInitialization();
Passes.run(*M.get());
Passes.doFinalization();
// Declare success.
Out.keep();