From cf57c7084afa98e7719173f792eb2b3e28f42630 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Wed, 10 Feb 2010 03:23:23 +0000 Subject: [PATCH] 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 --- utils/TableGen/EDEmitter.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/utils/TableGen/EDEmitter.cpp b/utils/TableGen/EDEmitter.cpp index 50971034a13..9aad2f609b4 100644 --- a/utils/TableGen/EDEmitter.cpp +++ b/utils/TableGen/EDEmitter.cpp @@ -371,14 +371,7 @@ static inline void decorate1(FlagsConstantEmitter *(&operandFlags)[MAX_OPERANDS] 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); } -- 2.34.1