The ConvertToMCInst() function can't fail, so remove the now dead Match_ConversionFai...
authorChad Rosier <mcrosier@apple.com>
Fri, 31 Aug 2012 16:41:07 +0000 (16:41 +0000)
committerChad Rosier <mcrosier@apple.com>
Fri, 31 Aug 2012 16:41:07 +0000 (16:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163002 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCTargetAsmParser.h
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/MBlaze/AsmParser/MBlazeAsmParser.cpp
lib/Target/X86/AsmParser/X86AsmParser.cpp

index 36d7b32859f2d89dac5936d043b85d3da6f7d14f..714d9ef5834dd21f6e6ec8ef14deee2b38f32493 100644 (file)
@@ -25,7 +25,6 @@ template <typename T> class SmallVectorImpl;
 class MCTargetAsmParser : public MCAsmParserExtension {
 public:
   enum MatchResultTy {
-    Match_ConversionFail,
     Match_InvalidOperand,
     Match_MissingFeature,
     Match_MnemonicFail,
index cc2057d20ccb28f893276898e05b3816f2260674..1fde5a2e79d449e6f6d275d8bca41777ff2f8111 100644 (file)
@@ -7520,9 +7520,6 @@ MatchAndEmitInstruction(SMLoc IDLoc,
   case Match_MnemonicFail:
     return Error(IDLoc, "invalid instruction",
                  ((ARMOperand*)Operands[0])->getLocRange());
-  case Match_ConversionFail:
-    // The converter function will have already emitted a diagnostic.
-    return true;
   case Match_RequiresNotITBlock:
     return Error(IDLoc, "flag setting instruction only valid outside IT block");
   case Match_RequiresITBlock:
index 38fb0e87fdb482e936a0809ec65d8a45fe9468da..94e71d159c3ce29a7500bcb217d651eea65cf967 100644 (file)
@@ -329,8 +329,6 @@ MatchAndEmitInstruction(SMLoc IDLoc,
     return Error(IDLoc, "instruction use requires an option to be enabled");
   case Match_MnemonicFail:
       return Error(IDLoc, "unrecognized instruction mnemonic");
-  case Match_ConversionFail:
-    return Error(IDLoc, "unable to convert operands to instruction");
   case Match_InvalidOperand:
     ErrorLoc = IDLoc;
     if (ErrorInfo != ~0U) {
index b18b968fbed0e0a8fa0d90140521be33f84e0246..d6791cea9ae8a8d3a2355bea1bbad516679471e0 100644 (file)
@@ -1585,9 +1585,6 @@ MatchInstruction(SMLoc IDLoc,
     Error(IDLoc, "instruction requires a CPU feature not currently enabled",
           EmptyRanges, matchingInlineAsm);
     return true;
-  case Match_ConversionFail:
-    return Error(IDLoc, "unable to convert operands to instruction",
-                 EmptyRanges, matchingInlineAsm);
   case Match_InvalidOperand:
     WasOriginallyInvalidOperand = true;
     break;