]> granicus.if.org Git - clang/commit
ms-inline-asm: Scope inline asm labels to functions
authorEhsan Akhgari <ehsan.akhgari@gmail.com>
Mon, 22 Sep 2014 02:21:54 +0000 (02:21 +0000)
committerEhsan Akhgari <ehsan.akhgari@gmail.com>
Mon, 22 Sep 2014 02:21:54 +0000 (02:21 +0000)
commitd88b0e1b7f200280079aba91b0dc1736d8bc1a11
tree50313a3c7f483a35ef5c4e2734c341f8d713840b
parent4d43b42fa583e993d0445fb9a35f4bdfe62ffc01
ms-inline-asm: Scope inline asm labels to functions

Summary:
This fixes PR20023.  In order to implement this scoping rule, we piggy
back on the existing LabelDecl machinery, by creating LabelDecl's that
will carry the "internal" name of the inline assembly label, which we
will rewrite the asm label to.

Reviewers: rnk

Subscribers: cfe-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@218230 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/AST/Decl.h
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Sema/Sema.h
lib/AST/Decl.cpp
lib/Parse/ParseStmtAsm.cpp
lib/Sema/JumpDiagnostics.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaStmt.cpp
lib/Sema/SemaStmtAsm.cpp
test/CodeGen/mozilla-ms-inline-asm.c
test/CodeGen/ms-inline-asm.c
test/CodeGen/ms-inline-asm.cpp
test/Parser/ms-inline-asm.c
test/Sema/ms-inline-asm.c