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
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);
}