diff options
author | Chad Rosier <mcrosier@apple.com> | 2013-04-22 17:01:46 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2013-04-22 17:01:46 +0000 |
commit | 44021515d76ec9b529f2adbc252552869b1357d5 (patch) | |
tree | 547ca4881368dfb0fb232caba414f0e94150f7ae /include/llvm/MC/MCParser | |
parent | a626be362b35fcb9269019d4f9cb25aaf9ddeb14 (diff) | |
download | external_llvm-44021515d76ec9b529f2adbc252552869b1357d5.zip external_llvm-44021515d76ec9b529f2adbc252552869b1357d5.tar.gz external_llvm-44021515d76ec9b529f2adbc252552869b1357d5.tar.bz2 |
[ms-inline asm] Refactor/clean up the SemaLookup interface. No functional
change indended.
Part of rdar://13663589
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180028 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCParser')
-rw-r--r-- | include/llvm/MC/MCParser/MCAsmParser.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h index 601f8f7..0b81772 100644 --- a/include/llvm/MC/MCParser/MCAsmParser.h +++ b/include/llvm/MC/MCParser/MCAsmParser.h @@ -33,10 +33,21 @@ class Twine; /// MCAsmParserSemaCallback - Generic Sema callback for assembly parser. class MCAsmParserSemaCallback { public: + typedef struct { + bool IsVarDecl; + unsigned Length, Size, Type; + + void clear() { + IsVarDecl = false; + Length = 1; + Size = 0; + Type = 0; + } + } InlineAsmIdentifierInfo; + virtual ~MCAsmParserSemaCallback(); - virtual void *LookupInlineAsmIdentifier(StringRef Name, void *Loc, - unsigned &Length, unsigned &Size, - unsigned &Type, bool &IsVarDecl) = 0; + virtual void *LookupInlineAsmIdentifier(StringRef &LineBuf, + InlineAsmIdentifierInfo &Info) = 0; virtual bool LookupInlineAsmField(StringRef Base, StringRef Member, unsigned &Offset) = 0; |