diff options
author | John McCall <rjmccall@apple.com> | 2013-05-03 00:15:41 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-05-03 00:15:41 +0000 |
commit | 26f3bb997f0c5d7951d61d28a26ca6ac1481090c (patch) | |
tree | 1ebd1e7e8a16a4b9e5f1704bfa9616431c85c4a7 /include/llvm/MC/MCParser | |
parent | 99ad6ac65e8c97a0d3c9d884285dda01f793b7d1 (diff) | |
download | external_llvm-26f3bb997f0c5d7951d61d28a26ca6ac1481090c.zip external_llvm-26f3bb997f0c5d7951d61d28a26ca6ac1481090c.tar.gz external_llvm-26f3bb997f0c5d7951d61d28a26ca6ac1481090c.tar.bz2 |
In MC asm parsing, account for the possibility of whitespace within
the "identifier" parsed by the frontend callback by skipping forward
until we've consumed a token that ends at the point dictated by the
callback.
In addition, inform the callback when it's parsing an unevaluated
operand (e.g. mov eax, LENGTH A::x) as opposed to an evaluated one
(e.g. mov eax, [A::x]).
This commit depends on a clang commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180978 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCParser')
-rw-r--r-- | include/llvm/MC/MCParser/MCAsmParser.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h index 4ca5b9a..7f012c6 100644 --- a/include/llvm/MC/MCParser/MCAsmParser.h +++ b/include/llvm/MC/MCParser/MCAsmParser.h @@ -49,7 +49,8 @@ public: virtual ~MCAsmParserSemaCallback(); virtual void *LookupInlineAsmIdentifier(StringRef &LineBuf, - InlineAsmIdentifierInfo &Info) = 0; + InlineAsmIdentifierInfo &Info, + bool IsUnevaluatedContext) = 0; virtual bool LookupInlineAsmField(StringRef Base, StringRef Member, unsigned &Offset) = 0; |