[llvm-commits] [llvm] r95762 - /llvm/trunk/utils/TableGen/EDEmitter.cpp

Sean Callanan scallanan at apple.com
Tue Feb 9 19:23:24 PST 2010


Author: spyffe
Date: Tue Feb  9 21:23:23 2010
New Revision: 95762

URL: http://llvm.org/viewvc/llvm-project?rev=95762&view=rev
Log:
Updated the enhanced disassembly library's TableGen
backend to not use exceptions at all except in cases
of actual error.

Modified:
    llvm/trunk/utils/TableGen/EDEmitter.cpp

Modified: llvm/trunk/utils/TableGen/EDEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/EDEmitter.cpp?rev=95762&r1=95761&r2=95762&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/EDEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/EDEmitter.cpp Tue Feb  9 21:23:23 2010
@@ -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);
 }





More information about the llvm-commits mailing list