]> granicus.if.org Git - clang/commit
PR27549: fix bug that resulted in us giving a translation-unit-scope variable a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 29 Apr 2016 01:23:20 +0000 (01:23 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 29 Apr 2016 01:23:20 +0000 (01:23 +0000)
commite99495409435826c17a0e58fa3caedf3e350489b
tree95844fbaef3eb9a16eb9bdd672edee219bc096ff
parente5d643a3e7fb52ce6a87c84dac0de41bda6a63e7
PR27549: fix bug that resulted in us giving a translation-unit-scope variable a
mangled name if it happened to be declared in an 'extern "C++"' context. This
also causes us to use the '_ZL' mangling rather than the '_Z' mangling for
internal-linkage entities that are wrapped in a language linkage construct.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267969 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ItaniumMangle.cpp
test/CodeGenCXX/c-linkage.cpp
test/CodeGenCXX/extern-c.cpp