HomePhabricator

[NewPM][TSan] Reiterate the TSan port

Description

[NewPM][TSan] Reiterate the TSan port

Summary:
Second iteration of D56433 which got reverted in rL350719. The problem
in the previous version was that we dropped the thunk calling the tsan init
function. The new version keeps the thunk which should appease dyld, but is not
actually OK wrt. the current semantics of function passes. Hence, add a
helper to insert the functions only on the first time. The helper
allows hooking into the insertion to be able to append them to the
global ctors list.

Reviewers: chandlerc, vitalybuka, fedor.sergeev, leonardchan

Subscribers: hiraditya, bollu, llvm-commits

Differential Revision: https://reviews.llvm.org/D56538

Details

Committed
pfaffeJan 16 2019, 1:28 AM
Differential Revision
D56538: [NewPM][TSan] Reiterate the TSan port
Branches
Unknown
Tags
Unknown