aboutsummaryrefslogtreecommitdiffstats
path: root/tools
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
commit744b5fb93f86e35093ea6379ae3b9c3f9cac75a9 (patch)
tree57db3d64eae1200302c6fe33ddda8553cae7840f /tools
parentd46c696837421603c9599054e5e82438ff5df2bc (diff)
downloadexternal_llvm-744b5fb93f86e35093ea6379ae3b9c3f9cac75a9.zip
external_llvm-744b5fb93f86e35093ea6379ae3b9c3f9cac75a9.tar.gz
external_llvm-744b5fb93f86e35093ea6379ae3b9c3f9cac75a9.tar.bz2
Revise comment and error message for the Bug 38 situation. Also, make it
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
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/CodeGeneratorBug.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/bugpoint/CodeGeneratorBug.cpp b/tools/bugpoint/CodeGeneratorBug.cpp
index 5c9cb06..4da709a 100644
--- a/tools/bugpoint/CodeGeneratorBug.cpp
+++ b/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();
}
}