mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Minor cleanup to all the switches after MatchInstructionImpl in all the AsmParsers.
Make sure they all have llvm_unreachable on the default path out of the switch. Remove unnecessary "default: break". Remove a 'return' after unreachable. Fix some indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225114 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1852,8 +1852,6 @@ bool MipsAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
|
||||
MatchInstructionImpl(Operands, Inst, ErrorInfo, MatchingInlineAsm);
|
||||
|
||||
switch (MatchResult) {
|
||||
default:
|
||||
break;
|
||||
case Match_Success: {
|
||||
if (processInstruction(Inst, IDLoc, Instructions))
|
||||
return true;
|
||||
@@ -1882,7 +1880,8 @@ bool MipsAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
|
||||
case Match_RequiresDifferentSrcAndDst:
|
||||
return Error(IDLoc, "source and destination must be different");
|
||||
}
|
||||
return true;
|
||||
|
||||
llvm_unreachable("Implement any new match types added!");
|
||||
}
|
||||
|
||||
void MipsAsmParser::warnIfAssemblerTemporary(int RegIndex, SMLoc Loc) {
|
||||
|
||||
Reference in New Issue
Block a user