move a method out of line.
authorChris Lattner <sabre@nondot.org>
Thu, 28 Oct 2010 21:28:01 +0000 (21:28 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 28 Oct 2010 21:28:01 +0000 (21:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117605 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/AsmParser/ARMAsmParser.cpp

index cf2d0eb9721badf261d01918d12d6a66195b1d88..9836ef598fd6b6f573e02450f99caaeed2c759c2 100644 (file)
@@ -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();