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
diff --git a/utils/TableGen/EDEmitter.cpp b/utils/TableGen/EDEmitter.cpp
index 5097103..9aad2f6 100644
--- a/utils/TableGen/EDEmitter.cpp
+++ b/utils/TableGen/EDEmitter.cpp
@@ -371,14 +371,7 @@
const char *opFlag) {
unsigned opIndex;
- try {
- 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");
- }
+ opIndex = inst.getOperandNamed(std::string(opName));
operandFlags[opIndex]->addEntry(opFlag);
}