diff options
| author | Reid Kleckner <reid@kleckner.net> | 2014-05-23 21:13:45 +0000 |
|---|---|---|
| committer | Reid Kleckner <reid@kleckner.net> | 2014-05-23 21:13:45 +0000 |
| commit | 8756959802c659b53f431bcd75b5234f0c9589ab (patch) | |
| tree | cdf906607f80c0c6ca999264c6c709fe6c4bcb0e /lib/CodeGen/CGExpr.cpp | |
| parent | 3ccca48c69e96f10485bc7eda0a1531dee22b775 (diff) | |
| download | clang-8756959802c659b53f431bcd75b5234f0c9589ab.tar.gz clang-8756959802c659b53f431bcd75b5234f0c9589ab.tar.bz2 clang-8756959802c659b53f431bcd75b5234f0c9589ab.tar.xz | |
Use comdats to avoid double initialization of weak data
Initializers of global data that can appear multiple TUs (static data
members of class templates or __declspec(selectany) data) are now in a
comdat group keyed on the global variable being initialized. On
non-Windows platforms, this is a code size and startup time
optimization. On Windows, this is necessary for ABI compatibility with
MSVC.
Fixes PR16959.
Reviewers: rsmith
Differential Revision: http://reviews.llvm.org/D3811
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
