SanitizerCoverage: Use `createSanitizerCtor` to create ctor and call init
authorIsmail Pazarbasi <ismail.pazarbasi@gmail.com>
Sun, 10 May 2015 13:45:05 +0000 (13:45 +0000)
committerIsmail Pazarbasi <ismail.pazarbasi@gmail.com>
Sun, 10 May 2015 13:45:05 +0000 (13:45 +0000)
commit6c318f59b1389826c9d70112e8fbec9973772f9e
treecdf7daca282b0e954dad8a0712de995bb088b41d
parent59a0fe6e3f53394421d7e6dbe848df3c17f30118
SanitizerCoverage: Use `createSanitizerCtor` to create ctor and call init

Second attempt; instead of using a named local variable, passing
arguments directly to `createSanitizerCtorAndInitFunctions` worked
on Windows.

Reviewers: kcc, samsonov

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236951 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/SanitizerCoverage.cpp