[llvm-commits] CVS: llvm/tools/bugpoint/ExtractFunction.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Aug 11 19:37:00 PDT 2004
Changes in directory llvm/tools/bugpoint:
ExtractFunction.cpp updated: 1.36 -> 1.37
---
Log message:
If the block extractor fails, actually emit the bc file that failed to extract
---
Diffs of the changes: (+5 -1)
Index: llvm/tools/bugpoint/ExtractFunction.cpp
diff -u llvm/tools/bugpoint/ExtractFunction.cpp:1.36 llvm/tools/bugpoint/ExtractFunction.cpp:1.37
--- llvm/tools/bugpoint/ExtractFunction.cpp:1.36 Wed Jul 21 15:50:33 2004
+++ llvm/tools/bugpoint/ExtractFunction.cpp Wed Aug 11 21:36:50 2004
@@ -262,7 +262,11 @@
PI.push_back(getPI(new BlockExtractorPass()));
Module *Ret = runPassesOn(M, PI);
BlocksToNotExtract.clear();
- if (Ret == 0)
+ if (Ret == 0) {
std::cout << "*** Basic Block extraction failed, please report a bug!\n";
+ M = swapProgramIn(M);
+ EmitProgressBytecode("basicblockextractfail", true);
+ M = swapProgramIn(M);
+ }
return Ret;
}
More information about the llvm-commits
mailing list