[llvm-commits] CVS: llvm/utils/TableGen/DAGISelEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Tue Nov 29 10:45:10 PST 2005
Changes in directory llvm/utils/TableGen:
DAGISelEmitter.cpp updated: 1.76 -> 1.77
---
Log message:
Better error message when unrecognized opcode is seen.
---
Diffs of the changes: (+6 -1)
DAGISelEmitter.cpp | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
Index: llvm/utils/TableGen/DAGISelEmitter.cpp
diff -u llvm/utils/TableGen/DAGISelEmitter.cpp:1.76 llvm/utils/TableGen/DAGISelEmitter.cpp:1.77
--- llvm/utils/TableGen/DAGISelEmitter.cpp:1.76 Thu Nov 17 11:43:52 2005
+++ llvm/utils/TableGen/DAGISelEmitter.cpp Tue Nov 29 12:44:58 2005
@@ -1952,7 +1952,12 @@
dynamic_cast<IntInit*>(PatternsToMatch[i].first->getLeafValue())) {
PatternsByOpcode[getSDNodeNamed("imm")].push_back(&PatternsToMatch[i]);
} else {
- assert(0 && "Unknown leaf value");
+ std::cerr << "Unrecognized opcode '";
+ PatternsToMatch[i].first->dump();
+ std::cerr << "' on tree pattern '";
+ std::cerr << PatternsToMatch[i].second->getOperator()->getName();
+ std::cerr << "'!\n";
+ exit(1);
}
}
More information about the llvm-commits
mailing list