]> granicus.if.org Git - llvm/commit
[asan] Delay creation of asan ctor.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 6 Apr 2017 19:55:09 +0000 (19:55 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Thu, 6 Apr 2017 19:55:09 +0000 (19:55 +0000)
commitfcc345974fe4e03b1f4dd6660a7fb2820709323f
tree08003bfac0f2483491a02961be932b578c210a22
parent593fb7ed17e430de5f09c7b602ce84c6bcffa0b1
[asan] Delay creation of asan ctor.

Create the constructor in the module pass.
This in needed for the GC-friendly globals change, where the constructor can be
put in a comdat  in some cases, but we don't know about that in the function
pass.

This is a rebase of r298731 which was reverted due to a false alarm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@299695 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/ModuleUtils.h
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Utils/ModuleUtils.cpp
test/Instrumentation/AddressSanitizer/instrument_load_then_store.ll