summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2013-07-01 20:22:57 +0000
committerEli Friedman <eli.friedman@gmail.com>2013-07-01 20:22:57 +0000
commit07369dde9d72213bf8a48288cd8b29999af9a40c (patch)
tree233db42fa4864f7c6d6c6ec64d1bbefe8d1acb8e /lib/CodeGen/CGExpr.cpp
parent18a295d96d66c2d99b089882366966e460ed5072 (diff)
downloadclang-07369dde9d72213bf8a48288cd8b29999af9a40c.tar.gz
clang-07369dde9d72213bf8a48288cd8b29999af9a40c.tar.bz2
clang-07369dde9d72213bf8a48288cd8b29999af9a40c.tar.xz
Fix mangling for block literals.
Blocks, like lambdas, can be written in contexts which are required to be treated as the same under ODR. Unlike lambdas, it isn't possible to actually take the address of a block, so the mangling of the block itself doesn't matter. However, objects like static variables inside a block do need to be mangled in a consistent way. There are basically three components here. One, block literals need a consistent numbering. Two, objects/types inside a block literal need to be mangled using it. Three, objects/types inside a block literal need to have their linkage computed correctly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185372 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions