llvm-6502/lib/Target/X86/AsmParser
Ehsan Akhgari e6f6980d5b ms-inline-asm: Fix parsing label names inside bracket expressions
Summary:
This fixes a couple of issues.  One is ensuring that AOK_Label rewrite
rules have a lower priority than AOK_Skip rules, as AOK_Skip needs to
be able to skip the brackets properly.  The other part of the fix ensures
that we don't overwrite Identifier when looking up the identifier, and
that we use the locally available information to generate the AOK_Label
rewrite in ParseIntelIdentifier.  Doing that in CreateMemForInlineAsm
would be problematic since the Start location there may point to the
beginning of a bracket expression, and not necessarily the beginning of
an identifier.

This also means that we don't need to carry around the InternlName field,
which helps simplify the code.

Test Plan: This will be tested on the clang side.

Reviewers: rnk

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D5445

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218270 91177308-0d34-0410-b5e6-96231b3b80d8
2014-09-22 20:40:36 +00:00
..
CMakeLists.txt [asan-assembly-instrumentation] Prologue and epilogue are moved out from InstrumentMemOperand(). 2014-09-01 12:51:00 +00:00
LLVMBuild.txt [asan-assembly-instrumentation] Prologue and epilogue are moved out from InstrumentMemOperand(). 2014-09-01 12:51:00 +00:00
Makefile
X86AsmInstrumentation.cpp [asan-assembly-instrumentation] Added CFI directives to the generated instrumentation code. 2014-09-10 09:45:49 +00:00
X86AsmInstrumentation.h [asan-assembly-instrumentation] Added CFI directives to the generated instrumentation code. 2014-09-10 09:45:49 +00:00
X86AsmParser.cpp ms-inline-asm: Fix parsing label names inside bracket expressions 2014-09-22 20:40:36 +00:00
X86AsmParserCommon.h [x86] Fix a pretty horrible bug and inconsistency in the x86 asm 2014-09-06 10:00:01 +00:00
X86Operand.h [x86] Fix a pretty horrible bug and inconsistency in the x86 asm 2014-09-06 10:00:01 +00:00