summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-09-23 22:33:01 +0000
committerReid Kleckner <reid@kleckner.net>2014-09-23 22:33:01 +0000
commit78927e884b9a5a61f573e9f8f2c5d88cd192bd57 (patch)
tree1ee87f887771f12456cf3647b736be2f4d7017ee /clang/lib/Sema/SemaDecl.cpp
parent57fd2623c33401e72c8368ceadb87e8f490df647 (diff)
downloadbcm5719-llvm-78927e884b9a5a61f573e9f8f2c5d88cd192bd57.tar.gz
bcm5719-llvm-78927e884b9a5a61f573e9f8f2c5d88cd192bd57.zip
GlobalOpt: Preserve comdats of unoptimized initializers
Rather than slurping in and splatting out the whole ctor list, preserve the existing array entries without trying to understand them. Only remove the entries that we know we can optimize away. This way we don't need to wire through priority and comdats or anything else we might add. Fixes a linker issue where the .init_array or .ctors entry would point to discarded initialization code if the comdat group from the TU with the faulty global_ctors entry was dropped. llvm-svn: 218337
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud