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/bugpoint/CrashDebugger.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/bugpoint/CrashDebugger.cpp')
-rw-r--r-- | llvm/tools/bugpoint/CrashDebugger.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/bugpoint/CrashDebugger.cpp b/llvm/tools/bugpoint/CrashDebugger.cpp index aed16f47e01..8836eedb476 100644 --- a/llvm/tools/bugpoint/CrashDebugger.cpp +++ b/llvm/tools/bugpoint/CrashDebugger.cpp @@ -412,7 +412,9 @@ bool ReduceCrashingInstructions::TestInsts(std::vector<const Instruction*> // Verify that this is still valid. PassManager Passes; Passes.add(createVerifierPass()); + Passes.doInitialization(); Passes.run(*M); + Passes.doFinalization(); // Try running on the hacked up program... if (TestFn(BD, M)) { |