[ms-inline asm] Create a register operand, rather than a memory operand when we
authorChad Rosier <mcrosier@apple.com>
Wed, 24 Oct 2012 17:22:29 +0000 (17:22 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 24 Oct 2012 17:22:29 +0000 (17:22 +0000)
commitc0a14b86f7ad334c2a557c1ee4fff12e8d396fd0
treed24e7e190dedce201e651b1c1e360a2d95b1dd4f
parent2f87640b86315beab8a5671cc23f524e59c58bd3
[ms-inline asm] Create a register operand, rather than a memory operand when we
see the offsetof operator.  Previously, we were matching something like MOVrm
in the front-end and later matching MOVrr in the back-end.  This change makes
things more consistent.  It also fixes cases where we can't match against a
memory operand as the source (test cases coming).
Part of rdar://12470317

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