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 | 891150f0b2a124a75c9f31516182ce864ae69ef8 (patch) | |
tree | f38139f6fe3cc0759358fa5c043d6715ac1091f0 /tools | |
parent | c90f2963c4ba579e28acf458966bb18d0fa6cf5b (diff) | |
download | external_llvm-891150f0b2a124a75c9f31516182ce864ae69ef8.zip external_llvm-891150f0b2a124a75c9f31516182ce864ae69ef8.tar.gz external_llvm-891150f0b2a124a75c9f31516182ce864ae69ef8.tar.bz2 |
If the block extractor fails, actually emit the bc file that failed to extract
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15675 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bugpoint/ExtractFunction.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/bugpoint/ExtractFunction.cpp b/tools/bugpoint/ExtractFunction.cpp index ecc2652..7806857 100644 --- a/tools/bugpoint/ExtractFunction.cpp +++ b/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; } |