summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/CodeGeneratorBug.cpp
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-03-12 21:37:46 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-03-12 21:37:46 +0000
commitafb74be0ce544f40f5f2bff11b63f9a25e753df1 (patch)
tree4943e5093bb56df3ba06669ece8b5e4aa213f947 /llvm/tools/bugpoint/CodeGeneratorBug.cpp
parent5d6345a01b445d00096350a63c9d9fd1634b0fff (diff)
downloadbcm5719-llvm-afb74be0ce544f40f5f2bff11b63f9a25e753df1.tar.gz
bcm5719-llvm-afb74be0ce544f40f5f2bff11b63f9a25e753df1.zip
Revise comment and error message for the Bug 38 situation. Also, make it
print out the name of the function being used. llvm-svn: 12347
Diffstat (limited to 'llvm/tools/bugpoint/CodeGeneratorBug.cpp')
-rw-r--r--llvm/tools/bugpoint/CodeGeneratorBug.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/tools/bugpoint/CodeGeneratorBug.cpp b/llvm/tools/bugpoint/CodeGeneratorBug.cpp
index 5c9cb06e3d7..4da709a3f8c 100644
--- a/llvm/tools/bugpoint/CodeGeneratorBug.cpp
+++ b/llvm/tools/bugpoint/CodeGeneratorBug.cpp
@@ -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();
}
}
OpenPOWER on IntegriCloud