aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-20 06:12:58 +0000
committerChris Lattner <sabre@nondot.org>2004-02-20 06:12:58 +0000
commit5110bed0a0f385e4d72380f361a77c87bff91091 (patch)
treeddfe8c18bc455260484efb18e99c08b518df9e9a
parentbdc9784613e6ad0292edcd414cdb7b8b3ca19996 (diff)
If bugpoint can't match the reference output, at LEAST provide the output
we can get. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11653 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--tools/bugpoint/CodeGeneratorBug.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/bugpoint/CodeGeneratorBug.cpp b/tools/bugpoint/CodeGeneratorBug.cpp
index c8bcd537cf..5c9cb06e3d 100644
--- a/tools/bugpoint/CodeGeneratorBug.cpp
+++ b/tools/bugpoint/CodeGeneratorBug.cpp
@@ -349,9 +349,13 @@ static void DisambiguateGlobalSymbols(Module *M) {
bool BugDriver::debugCodeGenerator() {
if ((void*)cbe == (void*)Interpreter) {
- std::cout << "*** The C backend cannot match the reference diff, but it is "
- << "used as the 'known good'\n code generator, so I can't deb"
- << "ug it. Perhaps you have a front-end problem?\n";
+ std::string Result = executeProgramWithCBE("bugpoint.cbe.out");
+ std::cout << "\n*** The C backend cannot match the reference diff, but it "
+ << "is used as the 'known good'\n code generator, so I can't"
+ << " debug it. Perhaps you have a front-end problem?\n As a"
+ << " sanity check, I left the result of executing the program "
+ << "with the C backend\n in this file for you: '"
+ << Result << "'.\n";
return true;
}