Wild and passionate uncontrolled goose chases are amusing to watch, but not
authorChris Lattner <sabre@nondot.org>
Fri, 20 Feb 2004 05:58:58 +0000 (05:58 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 20 Feb 2004 05:58:58 +0000 (05:58 +0000)
very helpful.  Let bugpoint favor being helpful instead of determined.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11652 91177308-0d34-0410-b5e6-96231b3b80d8

tools/bugpoint/CodeGeneratorBug.cpp

index 62b37526a39e09a182be9ad97b9e91ba1e24a46a..c8bcd537cf58aab3122547da1d6d84a9d6e6d6d6 100644 (file)
@@ -348,8 +348,15 @@ 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";
+    return true;
+  }
+
   // See if we can pin down which functions are being miscompiled...
-  //First, build a list of all of the non-external functions in the program.
+  // First, build a list of all of the non-external functions in the program.
   std::vector<Function*> MisCodegenFunctions;
   for (Module::iterator I = Program->begin(), E = Program->end(); I != E; ++I)
     if (!I->isExternal())