Updated the enhanced disassembly library's TableGen
authorSean Callanan <scallanan@apple.com>
Wed, 10 Feb 2010 03:23:23 +0000 (03:23 +0000)
committerSean Callanan <scallanan@apple.com>
Wed, 10 Feb 2010 03:23:23 +0000 (03:23 +0000)
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

index 50971034a1363bf2fb0d08fc9b069e219552de38..9aad2f609b489e6772f9760cfdee8d5b52f63e83 100644 (file)
@@ -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);
 }