summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-10-28 21:28:01 +0000
committerChris Lattner <sabre@nondot.org>2010-10-28 21:28:01 +0000
commit9487de6160ef61b355d322d4ae82011ac88c1b4f (patch)
treefe2d64b36a50cc496d8d56801a3acf361b5061aa
parent62d4f8684fb4ca880862308951203d8afbac770c (diff)
downloadbcm5719-llvm-9487de6160ef61b355d322d4ae82011ac88c1b4f.tar.gz
bcm5719-llvm-9487de6160ef61b355d322d4ae82011ac88c1b4f.zip
move a method out of line.
llvm-svn: 117605
-rw-r--r--llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp33
1 files changed, 20 insertions, 13 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
index cf2d0eb9721..9836ef598fd 100644
--- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -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();
OpenPOWER on IntegriCloud