summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Coroutines
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-03-25 01:01:11 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-03-25 01:01:11 +0000
commit71bb8f1ad09fb33439b0a1c861084e8a6833f75c (patch)
treeceb6afd53a6019521379f374120b3163852c0225 /llvm/lib/Transforms/Coroutines
parent86e630b8572a68a79f44644d7b2eccddf6bb68a7 (diff)
downloadbcm5719-llvm-71bb8f1ad09fb33439b0a1c861084e8a6833f75c.tar.gz
bcm5719-llvm-71bb8f1ad09fb33439b0a1c861084e8a6833f75c.zip
[asan] Put ctor/dtor in comdat.
When possible, put ASan ctor/dtor in comdat. The only reason not to is global registration, which can be TU-specific. This is not the case when there are no instrumented globals. This is also limited to ELF targets, because MachO does not have comdat, and COFF linkers may GC comdat constructors. The benefit of this is a lot less __asan_init() calls: one per DSO instead of one per TU. It's also necessary for the upcoming gc-sections-for-globals change on Linux, where multiple references to section start symbols trigger quadratic behaviour in gold linker. llvm-svn: 298756
Diffstat (limited to 'llvm/lib/Transforms/Coroutines')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud