[ms-inline asm] Maintain a StringRef to reference a symbol in a parsed operand,
authorChad Rosier <mcrosier@apple.com>
Tue, 9 Apr 2013 17:53:49 +0000 (17:53 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 9 Apr 2013 17:53:49 +0000 (17:53 +0000)
commitb976e407dcd7794eb9e151b81cdc8fbbe05e6bd8
treec6ce555bbd10c0a7d1a6d0f92ff2779d468ebb34
parent6fac1fbf30e41d33506b5bc66aa480ac7de7531d
[ms-inline asm] Maintain a StringRef to reference a symbol in a parsed operand,
rather than deriving the StringRef from the Start and End SMLocs.

Using the Start and End SMLocs works fine for operands such as [Symbol], but
not for operands such as [Symbol + ImmDisp].  All existing test cases that
reference a variable exercise this patch.
rdar://13602265

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