TSan: Use `createSanitizerCtor` to create ctor, and call `__tsan_init`
authorIsmail Pazarbasi <ismail.pazarbasi@gmail.com>
Thu, 7 May 2015 21:41:23 +0000 (21:41 +0000)
committerIsmail Pazarbasi <ismail.pazarbasi@gmail.com>
Thu, 7 May 2015 21:41:23 +0000 (21:41 +0000)
commit2bdae13effc91ded81cf844306d89e44d838249f
tree648d75bd6868774fc445e785e4d22d6e3378ce59
parent914ef58002574b4ddeec9c105b406b3ba3ade5dc
TSan: Use `createSanitizerCtor` to create ctor, and call `__tsan_init`

Reviewers: kcc, dvyukov

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D8779

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236778 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/ThreadSanitizer.cpp
test/Instrumentation/ThreadSanitizer/tsan_basic.ll