]> granicus.if.org Git - clang/commit
clang-cl: Merge adjacent single-line __asm blocks
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Fri, 25 Jul 2014 02:27:14 +0000 (02:27 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Fri, 25 Jul 2014 02:27:14 +0000 (02:27 +0000)
commite26841e34d41ca23d52adff3e5eaf0781768bba7
treeb52e97588a955cde3f785f3d839a23c6c0eea3ce
parentfc291269d1683418613e7ef05d9f780733f5111c
clang-cl: Merge adjacent single-line __asm blocks

Summary:
This patch extends the __asm parser to make it keep parsing input tokens
as inline assembly if a single-line __asm line is followed by another line
starting with __asm too.  It also makes sure that we correctly keep
matching braces in such situations by separating the notions of how many
braces we are matching and whether we are in single-line asm block mode.

Reviewers: rnk

Subscribers: cfe-commits

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

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