From 9ba9d4d76bfa8de2b05cbce02a5a3ff7d46cb331 Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Fri, 5 Oct 2012 18:41:14 +0000 Subject: [ms-inline asm] Add a few typedefs to simplify future changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165324 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/MC/MCTargetAsmParser.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/llvm/MC/MCTargetAsmParser.h b/include/llvm/MC/MCTargetAsmParser.h index 16cf6273a5..c5451ceec4 100644 --- a/include/llvm/MC/MCTargetAsmParser.h +++ b/include/llvm/MC/MCTargetAsmParser.h @@ -50,6 +50,10 @@ public: virtual bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) = 0; + typedef std::pair< unsigned, std::string > MapAndConstraint; + typedef SmallVector MatchInstMapAndConstraints; + typedef SmallVectorImpl MatchInstMapAndConstraintsImpl; + /// ParseInstruction - Parse one assembly instruction. /// /// The parser is positioned following the instruction name. The target @@ -92,7 +96,7 @@ public: MatchInstruction(SMLoc IDLoc, SmallVectorImpl &Operands, MCStreamer &Out, unsigned &Kind, unsigned &Opcode, - SmallVectorImpl > &MapAndConstraints, + MatchInstMapAndConstraintsImpl &MapAndConstraints, unsigned &OrigErrorInfo, bool matchingInlineAsm = false) { OrigErrorInfo = ~0x0; return true; @@ -117,7 +121,7 @@ public: virtual void convertToMapAndConstraints(unsigned Kind, const SmallVectorImpl &Operands, - SmallVectorImpl > &MapAndConstraints) = 0; + MatchInstMapAndConstraintsImpl &MapAndConstraints) = 0; }; } // End llvm namespace -- cgit v1.2.3-70-g09d2