[X86][MS-InlineAsm] Extended support for variables / identifiers on memory / immediat...
authorCoby Tayree <coby.tayree@intel.com>
Fri, 29 Sep 2017 07:02:49 +0000 (07:02 +0000)
committerCoby Tayree <coby.tayree@intel.com>
Fri, 29 Sep 2017 07:02:49 +0000 (07:02 +0000)
commit6150419d7161defbba157d0d92b98070f2a9d63b
tree47a1cf66b8d68b5569512d5295d5fd879edeb070
parentc3d24118e8232864e347f1db3420e8ed89c61219
[X86][MS-InlineAsm] Extended support for variables / identifiers on memory / immediate expressions

Allow the proper recognition of Enum values and global variables inside ms inline-asm memory / immediate expressions, as they require some additional overhead and treated incorrect if doesn't early recognized.
supersedes D33278, D35774

Differential Revision: https://reviews.llvm.org/D37413

llvm-svn: 314494
clang/include/clang/Parse/Parser.h
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseStmtAsm.cpp
clang/lib/Sema/SemaStmtAsm.cpp
clang/test/CodeGen/ms-inline-asm-enums.cpp [new file with mode: 0644]
clang/test/CodeGen/ms-inline-asm-variables.c [new file with mode: 0644]