llvm.org GIT mirror llvm / 5d04a56
The ConvertToMCInst() function can't fail, so remove the now dead Match_ConversionFail enum. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163002 91177308-0d34-0410-b5e6-96231b3b80d8 Chad Rosier 7 years ago
4 changed file(s) with 0 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
2424 class MCTargetAsmParser : public MCAsmParserExtension {
2525 public:
2626 enum MatchResultTy {
27 Match_ConversionFail,
2827 Match_InvalidOperand,
2928 Match_MissingFeature,
3029 Match_MnemonicFail,
75197519 case Match_MnemonicFail:
75207520 return Error(IDLoc, "invalid instruction",
75217521 ((ARMOperand*)Operands[0])->getLocRange());
7522 case Match_ConversionFail:
7523 // The converter function will have already emitted a diagnostic.
7524 return true;
75257522 case Match_RequiresNotITBlock:
75267523 return Error(IDLoc, "flag setting instruction only valid outside IT block");
75277524 case Match_RequiresITBlock:
328328 return Error(IDLoc, "instruction use requires an option to be enabled");
329329 case Match_MnemonicFail:
330330 return Error(IDLoc, "unrecognized instruction mnemonic");
331 case Match_ConversionFail:
332 return Error(IDLoc, "unable to convert operands to instruction");
333331 case Match_InvalidOperand:
334332 ErrorLoc = IDLoc;
335333 if (ErrorInfo != ~0U) {
15841584 Error(IDLoc, "instruction requires a CPU feature not currently enabled",
15851585 EmptyRanges, matchingInlineAsm);
15861586 return true;
1587 case Match_ConversionFail:
1588 return Error(IDLoc, "unable to convert operands to instruction",
1589 EmptyRanges, matchingInlineAsm);
15901587 case Match_InvalidOperand:
15911588 WasOriginallyInvalidOperand = true;
15921589 break;