diff options
author | Owen Anderson <resistor@mac.com> | 2012-11-15 00:14:15 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2012-11-15 00:14:15 +0000 |
commit | 1aa2751260a9df6c57aceefcefded89b20dbb39c (patch) | |
tree | 3e76c74ff88937eadd916be1a5b2f10cedf07f7a /llvm/tools/llvm-prof/llvm-prof.cpp | |
parent | a4ca19694eb28497e6d358cababfe2ab2966003e (diff) | |
download | bcm5719-llvm-1aa2751260a9df6c57aceefcefded89b20dbb39c.tar.gz bcm5719-llvm-1aa2751260a9df6c57aceefcefded89b20dbb39c.zip |
Add doInitialization and doFinalization methods to ModulePass's, to allow them to be re-initialized and reused on multiple Module's.
Patch by Pedro Artigas.
llvm-svn: 168008
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; } |