[ms-inline asm] Add support for parsing the '.' operator. Given,
authorChad Rosier <mcrosier@apple.com>
Wed, 24 Oct 2012 22:21:50 +0000 (22:21 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 24 Oct 2012 22:21:50 +0000 (22:21 +0000)
commit22f441afbac90b2dc1e4315a7a6c50dd034af2db
treed553338b6c8fe00e13c3cefc9bc631971d2151e9
parent4284e1795dd47d9638bb4fbd455ddb7e2e710e80
[ms-inline asm] Add support for parsing the '.' operator.  Given,

[register].field

The operator returns the value at the location pointed to by register plus the
offset of field within its structure or union.  This patch only handles
immediate fields (i.e., [eax].4).  The original displacement has to be a
MCConstantExpr as well.
Part of rdar://12470415 and rdar://12470514

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp