If bugpoint can't match the reference output, at LEAST provide the output

we can get.

llvm-svn: 11653
This commit is contained in:
Chris Lattner 2004-02-20 06:12:58 +00:00
parent f44220efcf
commit 3aee2f04d9
1 changed files with 7 additions and 3 deletions

View File

@ -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;
}