diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-12 02:36:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-12 02:36:50 +0000 |
commit | af32dfa0f4b665e3fe629a285aa28368ef80bafb (patch) | |
tree | b84ec3efe92e30cf721b23410832c655dd061188 /llvm/tools/bugpoint/ExtractFunction.cpp | |
parent | 5098bd5499efc859c4d3b8b27a6f5b21454d9e48 (diff) | |
download | bcm5719-llvm-af32dfa0f4b665e3fe629a285aa28368ef80bafb.tar.gz bcm5719-llvm-af32dfa0f4b665e3fe629a285aa28368ef80bafb.zip |
If the block extractor fails, actually emit the bc file that failed to extract
llvm-svn: 15675
Diffstat (limited to 'llvm/tools/bugpoint/ExtractFunction.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExtractFunction.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ExtractFunction.cpp b/llvm/tools/bugpoint/ExtractFunction.cpp index ecc2652556e..7806857f2ef 100644 --- a/llvm/tools/bugpoint/ExtractFunction.cpp +++ b/llvm/tools/bugpoint/ExtractFunction.cpp @@ -262,7 +262,11 @@ Module *BugDriver::ExtractMappedBlocksFromModule(const 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; } |