mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
move a method out of line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
550276ee5b
commit
fa42fad8bf
@ -78,19 +78,8 @@ private:
|
||||
|
||||
bool MatchAndEmitInstruction(SMLoc IDLoc,
|
||||
SmallVectorImpl<MCParsedAsmOperand*> &Operands,
|
||||
MCStreamer &Out) {
|
||||
MCInst Inst;
|
||||
unsigned ErrorInfo;
|
||||
if (MatchInstructionImpl(Operands, Inst, ErrorInfo) == Match_Success) {
|
||||
Out.EmitInstruction(Inst);
|
||||
return false;
|
||||
}
|
||||
|
||||
// FIXME: We should give nicer diagnostics about the exact failure.
|
||||
Error(IDLoc, "unrecognized instruction");
|
||||
return true;
|
||||
}
|
||||
|
||||
MCStreamer &Out);
|
||||
|
||||
/// @name Auto-generated Match Functions
|
||||
/// {
|
||||
|
||||
@ -764,6 +753,24 @@ bool ARMAsmParser::ParseInstruction(StringRef Name, SMLoc NameLoc,
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ARMAsmParser::
|
||||
MatchAndEmitInstruction(SMLoc IDLoc,
|
||||
SmallVectorImpl<MCParsedAsmOperand*> &Operands,
|
||||
MCStreamer &Out) {
|
||||
MCInst Inst;
|
||||
unsigned ErrorInfo;
|
||||
if (MatchInstructionImpl(Operands, Inst, ErrorInfo) == Match_Success) {
|
||||
Out.EmitInstruction(Inst);
|
||||
return false;
|
||||
}
|
||||
|
||||
// FIXME: We should give nicer diagnostics about the exact failure.
|
||||
Error(IDLoc, "unrecognized instruction");
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// ParseDirective parses the arm specific directives
|
||||
bool ARMAsmParser::ParseDirective(AsmToken DirectiveID) {
|
||||
StringRef IDVal = DirectiveID.getIdentifier();
|
||||
|
Loading…
x
Reference in New Issue
Block a user