]> granicus.if.org Git - clang/commit
[MS] Mangle a unique ID into all MS inline asm labels
authorReid Kleckner <rnk@google.com>
Mon, 28 Nov 2016 20:52:19 +0000 (20:52 +0000)
committerReid Kleckner <rnk@google.com>
Mon, 28 Nov 2016 20:52:19 +0000 (20:52 +0000)
commitdc3ec65843d47231a4d2cf1c40ef7b00a536b9c8
treeeb7207141826cecbba0b70bca6569c2222e26bf5
parentfd186766f6edfb1aad5e91b1a67462105ca4a787
[MS] Mangle a unique ID into all MS inline asm labels

This solves PR23715 in a way that is compatible with LTO.

MSVC supports jumping to source-level labels and between inline asm
blocks, but we don't.

Also revert the old solution, r255201, which was to mark these calls as
noduplicate.

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