summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTReaderDecl.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-05-23 21:13:45 +0000
committerReid Kleckner <reid@kleckner.net>2014-05-23 21:13:45 +0000
commit563f0e852c5002ff177aa73802b543d5e3781388 (patch)
tree0c4b207fb3ca3b86cf291fc5f4c88f08d5c15cdd /clang/lib/Serialization/ASTReaderDecl.cpp
parent2f75351c02a32592f5c0f2af3a2ab10cf12cdb07 (diff)
downloadbcm5719-llvm-563f0e852c5002ff177aa73802b543d5e3781388.tar.gz
bcm5719-llvm-563f0e852c5002ff177aa73802b543d5e3781388.zip
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 llvm-svn: 209555
Diffstat (limited to 'clang/lib/Serialization/ASTReaderDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud