OSDN Git Service

Revert "[X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when...
authorReid Kleckner <rnk@google.com>
Mon, 24 Jul 2017 20:48:15 +0000 (20:48 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 24 Jul 2017 20:48:15 +0000 (20:48 +0000)
commitc2060a50efe3945eac63830f4b922d4e4fe596be
tree724cfa136a8afc229161a52dc0e13fe5090ae954
parent04cdb2eeb460026329bc765469ff557a3112fa19
Revert "[X86][InlineAsm][Ms Compatibility]Prefer variable name over a register when the two collides"

This reverts r308867 and r308866.

It broke the sanitizer-windows buildbot on C++ code similar to the
following:

  namespace cl { }
  void f() {
    __asm {
      mov al, cl
    }
  }

t.cpp(4,13):  error: unexpected namespace name 'cl': expected expression
    mov al, cl
            ^

In this case, MSVC parses 'cl' as a register, not a namespace.

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