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

@@ -287,9 +287,7 @@ int main(int argc, char **argv) {
PassManager PassMgr;
PassMgr.add(createProfileLoaderPass(ProfileDataFile));
PassMgr.add(new ProfileInfoPrinterPass(PIL));
PassMgr.doInitialization();
PassMgr.run(*M);
PassMgr.doFinalization();
return 0;
}