mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-28 00:40:54 +00:00
Updated the enhanced disassembly library's TableGen
backend to not use exceptions at all except in cases of actual error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95762 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
778086caf7
commit
cf57c7084a
@ -371,14 +371,7 @@ static inline void decorate1(FlagsConstantEmitter *(&operandFlags)[MAX_OPERANDS]
|
|||||||
const char *opFlag) {
|
const char *opFlag) {
|
||||||
unsigned opIndex;
|
unsigned opIndex;
|
||||||
|
|
||||||
try {
|
|
||||||
opIndex = inst.getOperandNamed(std::string(opName));
|
opIndex = inst.getOperandNamed(std::string(opName));
|
||||||
}
|
|
||||||
catch (...) {
|
|
||||||
errs() << "Instruction: " << inst.TheDef->getName().c_str() << "\n";
|
|
||||||
errs() << "Operand name: " << opName << "\n";
|
|
||||||
llvm_unreachable("Couldn't find operand");
|
|
||||||
}
|
|
||||||
|
|
||||||
operandFlags[opIndex]->addEntry(opFlag);
|
operandFlags[opIndex]->addEntry(opFlag);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user