mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Better error message when unrecognized opcode is seen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
425a96971f
commit
76021f010b
@ -1952,7 +1952,12 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) {
|
|||||||
dynamic_cast<IntInit*>(PatternsToMatch[i].first->getLeafValue())) {
|
dynamic_cast<IntInit*>(PatternsToMatch[i].first->getLeafValue())) {
|
||||||
PatternsByOpcode[getSDNodeNamed("imm")].push_back(&PatternsToMatch[i]);
|
PatternsByOpcode[getSDNodeNamed("imm")].push_back(&PatternsToMatch[i]);
|
||||||
} else {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user