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)
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/cfe/trunk@308926 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ms-inline-asm-var-name.c [deleted file]

diff --git a/test/CodeGen/ms-inline-asm-var-name.c b/test/CodeGen/ms-inline-asm-var-name.c
deleted file mode 100644 (file)
index 084e905..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-// REQUIRES: x86-registered-target
-// RUN: %clang_cc1 %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - | FileCheck %s
-
-void t() {
-  int eax;
-  int Ecx;
-  __asm mov eax, ebx
-  // CHECK: mov $0, ebx
-  __asm add ecx, Ecx
-  // CHECK: add ecx, $1
-}
-