diff options
author | Chad Rosier <mcrosier@apple.com> | 2012-10-05 18:41:14 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2012-10-05 18:41:14 +0000 |
commit | 9ba9d4d76bfa8de2b05cbce02a5a3ff7d46cb331 (patch) | |
tree | d03a0124fc0ed75bc3b22399ce60f61916a941bf /include | |
parent | dfb8dbb4fd97140aa9bf6b9dadbca25665144c09 (diff) | |
download | llvm-9ba9d4d76bfa8de2b05cbce02a5a3ff7d46cb331.tar.gz llvm-9ba9d4d76bfa8de2b05cbce02a5a3ff7d46cb331.tar.bz2 llvm-9ba9d4d76bfa8de2b05cbce02a5a3ff7d46cb331.tar.xz |
[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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/MC/MCTargetAsmParser.h | 8 |
1 files changed, 6 insertions, 2 deletions
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<MapAndConstraint, 4> MatchInstMapAndConstraints; + typedef SmallVectorImpl<MapAndConstraint> 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<MCParsedAsmOperand*> &Operands, MCStreamer &Out, unsigned &Kind, unsigned &Opcode, - SmallVectorImpl<std::pair< unsigned, std::string > > &MapAndConstraints, + MatchInstMapAndConstraintsImpl &MapAndConstraints, unsigned &OrigErrorInfo, bool matchingInlineAsm = false) { OrigErrorInfo = ~0x0; return true; @@ -117,7 +121,7 @@ public: virtual void convertToMapAndConstraints(unsigned Kind, const SmallVectorImpl<MCParsedAsmOperand*> &Operands, - SmallVectorImpl<std::pair< unsigned, std::string > > &MapAndConstraints) = 0; + MatchInstMapAndConstraintsImpl &MapAndConstraints) = 0; }; } // End llvm namespace |