[PATCH] clang-cl: Merge adjacent single-line __asm blocks

Ehsan Akhgari ehsan.akhgari at gmail.com
Sat Jul 19 18:20:33 PDT 2014


Hi rnk, majnemer,

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.

http://reviews.llvm.org/D4598

Files:
  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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4598.11688.patch
Type: text/x-patch
Size: 30087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140720/f5f24f2b/attachment.bin>


More information about the cfe-commits mailing list