mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
MC/AsmParser: Add support for allowing the conversion process to fail (via
custom conversion functions). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124872 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -334,6 +334,8 @@ 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) {
|
||||
|
Reference in New Issue
Block a user