]> granicus.if.org Git - clang/commit
Implement non-internal linkage for lambda closure types that need a
authorDouglas Gregor <dgregor@apple.com>
Tue, 21 Feb 2012 04:17:39 +0000 (04:17 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 21 Feb 2012 04:17:39 +0000 (04:17 +0000)
commit5878cbcfaa90b8515550db86033fd5a0efab971d
tree7cb574e300ff00ea50204363fbc09578a8f8f9f9
parent702afbc68b933af520420688cdf6783b411a8f70
Implement non-internal linkage for lambda closure types that need a
stable mangling, since these lambdas can end up in multiple
translation units. Sema is responsible for deciding when this is the
case, because it's already responsible for choosing the mangling
number.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151029 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Decl.cpp
lib/AST/ExprCXX.cpp
lib/AST/ItaniumMangle.cpp
lib/Sema/SemaLambda.cpp
test/CodeGenCXX/lambda-expressions.cpp
test/CodeGenCXX/mangle-lambdas.cpp