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 | 1db12f51353680685b8c30785188dca85c53c0b6 (patch) | |
tree | a47fd1c68eafd55362a468718b2621b2a80c5123 /llvm/tools/llvm-prof/llvm-prof.cpp | |
parent | 8ec03f5b54fad5ea337b31cce318dc8214b25447 (diff) | |
download | bcm5719-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/llvm-prof/llvm-prof.cpp')
-rw-r--r-- | llvm/tools/llvm-prof/llvm-prof.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-prof/llvm-prof.cpp b/llvm/tools/llvm-prof/llvm-prof.cpp index 81e9503abe2..940ac340e7c 100644 --- a/llvm/tools/llvm-prof/llvm-prof.cpp +++ b/llvm/tools/llvm-prof/llvm-prof.cpp @@ -287,7 +287,9 @@ 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; } |