[llvm-commits] CVS: llvm/tools/bugpoint/CodeGeneratorBug.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Feb 20 00:14:01 PST 2004
Changes in directory llvm/tools/bugpoint:
CodeGeneratorBug.cpp updated: 1.36 -> 1.37
---
Log message:
If bugpoint can't match the reference output, at LEAST provide the output
we can get.
---
Diffs of the changes: (+7 -3)
Index: llvm/tools/bugpoint/CodeGeneratorBug.cpp
diff -u llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.36 llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.37
--- llvm/tools/bugpoint/CodeGeneratorBug.cpp:1.36 Thu Feb 19 23:58:58 2004
+++ llvm/tools/bugpoint/CodeGeneratorBug.cpp Fri Feb 20 00:12:58 2004
@@ -349,9 +349,13 @@
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;
}
More information about the llvm-commits
mailing list