Revise comment and error message for the Bug 38 situation. Also, make it
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 12 Mar 2004 21:37:46 +0000 (21:37 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 12 Mar 2004 21:37:46 +0000 (21:37 +0000)
print out the name of the function being used.

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

tools/bugpoint/CodeGeneratorBug.cpp

index 5c9cb06e3d7107e105a972851e0558cdfab702fd..4da709a3f8cd8790bc5dfd0f490b905a2ecec6ae 100644 (file)
@@ -167,10 +167,11 @@ bool ReduceMisCodegenFunctions::TestFuncs(const std::vector<Function*> &Funcs,
             // actually use the resolved function
             Inst->replaceUsesOfWith(F, castResolver);
           } else {
-            // FIXME: need to take care of cases where a function is used that
-            // is not an instruction, e.g. global variable initializer...
-            std::cerr <<
-              "UNSUPPORTED: External function used as global initializer!\n";
+            // FIXME: need to take care of cases where a function is used by
+            // something other than an instruction; e.g., global variable
+            // initializers and constant expressions.
+            std::cerr << "UNSUPPORTED: Non-instruction is using an external "
+                      << "function, " << F->getName() << "().\n";
             abort();
           }
       }