summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2013-05-03 00:15:41 +0000
committerJohn McCall <rjmccall@apple.com>2013-05-03 00:15:41 +0000
commit26f3bb997f0c5d7951d61d28a26ca6ac1481090c (patch)
tree1ebd1e7e8a16a4b9e5f1704bfa9616431c85c4a7 /include
parent99ad6ac65e8c97a0d3c9d884285dda01f793b7d1 (diff)
downloadllvm-26f3bb997f0c5d7951d61d28a26ca6ac1481090c.tar.gz
llvm-26f3bb997f0c5d7951d61d28a26ca6ac1481090c.tar.bz2
llvm-26f3bb997f0c5d7951d61d28a26ca6ac1481090c.tar.xz
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')
-rw-r--r--include/llvm/MC/MCParser/MCAsmParser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/MC/MCParser/MCAsmParser.h b/include/llvm/MC/MCParser/MCAsmParser.h
index 4ca5b9ae9e..7f012c65b0 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;