summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/CodeGeneratorBug.cpp
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
commit3aee2f04d93586a9df4ae02f1e88eb143bed23af (patch)
treeadabfd9510fbd19344e15dd9b8f978a116271ec2 /llvm/tools/bugpoint/CodeGeneratorBug.cpp
parentf44220efcf84b034b432271814ad9dde60907b79 (diff)
downloadbcm5719-llvm-3aee2f04d93586a9df4ae02f1e88eb143bed23af.tar.gz
bcm5719-llvm-3aee2f04d93586a9df4ae02f1e88eb143bed23af.zip
If bugpoint can't match the reference output, at LEAST provide the output
we can get. llvm-svn: 11653
Diffstat (limited to 'llvm/tools/bugpoint/CodeGeneratorBug.cpp')
-rw-r--r--llvm/tools/bugpoint/CodeGeneratorBug.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/tools/bugpoint/CodeGeneratorBug.cpp b/llvm/tools/bugpoint/CodeGeneratorBug.cpp
index c8bcd537cf5..5c9cb06e3d7 100644
--- a/llvm/tools/bugpoint/CodeGeneratorBug.cpp
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud