llvm.org GIT mirror llvm / 20bc430
[X86][ms-inline asm] Add support for memory operands that include structs Add ability to reference struct symbols in memory operands. Test case will be added on the clang side (review http://reviews.llvm.org/D15749) Differential Revision: http://reviews.llvm.org/D15748 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256381 91177308-0d34-0410-b5e6-96231b3b80d8 Marina Yatsina 4 years ago
1 changed file(s) with 5 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
11711171 MCAsmParser &Parser = getParser();
11721172 const AsmToken &Tok = Parser.getTok();
11731173
1174 AsmToken::TokenKind PrevTK = AsmToken::Error;
11741175 bool Done = false;
11751176 while (!Done) {
11761177 bool UpdateLocLex = true;
12141215 return Error(Tok.getLoc(), "Unexpected identifier!");
12151216 } else {
12161217 // This is a dot operator, not an adjacent identifier.
1217 if (Identifier.find('.') != StringRef::npos) {
1218 if (Identifier.find('.') != StringRef::npos &&
1219 PrevTK == AsmToken::RBrac) {
12181220 return false;
12191221 } else {
12201222 InlineAsmIdentifierInfo &Info = SM.getIdentifierInfo();
12831285
12841286 if (!Done && UpdateLocLex)
12851287 End = consumeToken();
1288
1289 PrevTK = TK;
12861290 }
12871291 return false;
12881292 }