mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
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
This commit is contained in:
@@ -25,7 +25,6 @@ template <typename T> class SmallVectorImpl;
|
|||||||
class MCTargetAsmParser : public MCAsmParserExtension {
|
class MCTargetAsmParser : public MCAsmParserExtension {
|
||||||
public:
|
public:
|
||||||
enum MatchResultTy {
|
enum MatchResultTy {
|
||||||
Match_ConversionFail,
|
|
||||||
Match_InvalidOperand,
|
Match_InvalidOperand,
|
||||||
Match_MissingFeature,
|
Match_MissingFeature,
|
||||||
Match_MnemonicFail,
|
Match_MnemonicFail,
|
||||||
|
@@ -7520,9 +7520,6 @@ MatchAndEmitInstruction(SMLoc IDLoc,
|
|||||||
case Match_MnemonicFail:
|
case Match_MnemonicFail:
|
||||||
return Error(IDLoc, "invalid instruction",
|
return Error(IDLoc, "invalid instruction",
|
||||||
((ARMOperand*)Operands[0])->getLocRange());
|
((ARMOperand*)Operands[0])->getLocRange());
|
||||||
case Match_ConversionFail:
|
|
||||||
// The converter function will have already emitted a diagnostic.
|
|
||||||
return true;
|
|
||||||
case Match_RequiresNotITBlock:
|
case Match_RequiresNotITBlock:
|
||||||
return Error(IDLoc, "flag setting instruction only valid outside IT block");
|
return Error(IDLoc, "flag setting instruction only valid outside IT block");
|
||||||
case Match_RequiresITBlock:
|
case Match_RequiresITBlock:
|
||||||
|
@@ -329,8 +329,6 @@ MatchAndEmitInstruction(SMLoc IDLoc,
|
|||||||
return Error(IDLoc, "instruction use requires an option to be enabled");
|
return Error(IDLoc, "instruction use requires an option to be enabled");
|
||||||
case Match_MnemonicFail:
|
case Match_MnemonicFail:
|
||||||
return Error(IDLoc, "unrecognized instruction mnemonic");
|
return Error(IDLoc, "unrecognized instruction mnemonic");
|
||||||
case Match_ConversionFail:
|
|
||||||
return Error(IDLoc, "unable to convert operands to instruction");
|
|
||||||
case Match_InvalidOperand:
|
case Match_InvalidOperand:
|
||||||
ErrorLoc = IDLoc;
|
ErrorLoc = IDLoc;
|
||||||
if (ErrorInfo != ~0U) {
|
if (ErrorInfo != ~0U) {
|
||||||
|
@@ -1585,9 +1585,6 @@ MatchInstruction(SMLoc IDLoc,
|
|||||||
Error(IDLoc, "instruction requires a CPU feature not currently enabled",
|
Error(IDLoc, "instruction requires a CPU feature not currently enabled",
|
||||||
EmptyRanges, matchingInlineAsm);
|
EmptyRanges, matchingInlineAsm);
|
||||||
return true;
|
return true;
|
||||||
case Match_ConversionFail:
|
|
||||||
return Error(IDLoc, "unable to convert operands to instruction",
|
|
||||||
EmptyRanges, matchingInlineAsm);
|
|
||||||
case Match_InvalidOperand:
|
case Match_InvalidOperand:
|
||||||
WasOriginallyInvalidOperand = true;
|
WasOriginallyInvalidOperand = true;
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user