summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Module.cpp
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-04-06 19:55:13 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2017-04-06 19:55:13 +0000
commit5dfe420d108d48d1864d1c7ef87b0fd907fe8a7b (patch)
tree1244ed1e56202c0d275f72dad985a14c88563388 /llvm/lib/IR/Module.cpp
parent039af609f163c0c38d1557fbb2f79077374ba911 (diff)
downloadbcm5719-llvm-5dfe420d108d48d1864d1c7ef87b0fd907fe8a7b.tar.gz
bcm5719-llvm-5dfe420d108d48d1864d1c7ef87b0fd907fe8a7b.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. This is a rebase of r298756. llvm-svn: 299696
Diffstat (limited to 'llvm/lib/IR/Module.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud