[llvm-commits] CVS: llvm/tools/bugpoint/CrashDebugger.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Mar 16 15:16:29 PST 2006
Changes in directory llvm/tools/bugpoint:
CrashDebugger.cpp updated: 1.46 -> 1.47
---
Log message:
add an assert to get a slightly better msg about this problem
---
Diffs of the changes: (+3 -0)
CrashDebugger.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/tools/bugpoint/CrashDebugger.cpp
diff -u llvm/tools/bugpoint/CrashDebugger.cpp:1.46 llvm/tools/bugpoint/CrashDebugger.cpp:1.47
--- llvm/tools/bugpoint/CrashDebugger.cpp:1.46 Sun Mar 5 16:21:36 2006
+++ llvm/tools/bugpoint/CrashDebugger.cpp Thu Mar 16 17:16:17 2006
@@ -128,6 +128,9 @@
// Convert list to set for fast lookup...
std::set<Function*> Functions;
for (unsigned i = 0, e = Funcs.size(); i != e; ++i) {
+ // FIXME: bugpoint should add names to all stripped symbols.
+ assert(!Funcs[i]->getName().empty() &&
+ "Bugpoint doesn't work on stripped modules yet PR718!");
Function *CMF = M->getFunction(Funcs[i]->getName(),
Funcs[i]->getFunctionType());
assert(CMF && "Function not in module?!");
More information about the llvm-commits
mailing list