]> granicus.if.org Git - clang/commit
[ms inline asm] Add support for label names with '$' chars
authorMarina Yatsina <marina.yatsina@intel.com>
Tue, 29 Dec 2015 08:49:34 +0000 (08:49 +0000)
committerMarina Yatsina <marina.yatsina@intel.com>
Tue, 29 Dec 2015 08:49:34 +0000 (08:49 +0000)
commitb94e85d194919b5ab11862713b74da82021a4178
treec718a2d8c1b26059d41e2b673568fb899c194ffe
parenta17defeefcbfef958a0f7785665b558e8e260303
[ms inline asm] Add support for label names with '$' chars

In MS inline asm syntax a label with '$' char produces an error, while in AT&T it does not.
In AT&T inline asm syntax Clang escapes the '$' char and replaces it with "$$". Adopted same approach for MS syntax.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256545 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaStmtAsm.cpp
test/CodeGen/ms-inline-asm.c