OSDN Git Service

Move asan-coverage into a separate phase.
authorKostya Serebryany <kcc@google.com>
Tue, 11 Nov 2014 22:14:37 +0000 (22:14 +0000)
committerKostya Serebryany <kcc@google.com>
Tue, 11 Nov 2014 22:14:37 +0000 (22:14 +0000)
commitabb3335f6dc853af80185282e8ca37b8bd5e5b75
tree00df12a1c26c6e651fdaecd21d141f09b880fc74
parent5bf8ade9d043d8739b8bfa90e7d7c64ebfe11ef1
Move asan-coverage into a separate phase.

Summary:
This change moves asan-coverage instrumentation
into a separate Module pass.
The other part of the change in clang introduces a new flag
-fsanitize-coverage=N.
Another small patch will update tests in compiler-rt.

With this patch no functionality change is expected except for the flag name.
The following changes will make the coverage instrumentation work with tsan/msan

Test Plan: Run regression tests, chromium.

Reviewers: nlewycky, samsonov

Reviewed By: nlewycky, samsonov

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221718 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/InitializePasses.h
include/llvm/Transforms/Instrumentation.h
lib/Transforms/Instrumentation/AddressSanitizer.cpp
lib/Transforms/Instrumentation/CMakeLists.txt
lib/Transforms/Instrumentation/Instrumentation.cpp
lib/Transforms/Instrumentation/SanitizerCoverage.cpp [new file with mode: 0644]
test/Instrumentation/SanitizerCoverage/coverage-dbg.ll [moved from test/Instrumentation/AddressSanitizer/coverage-dbg.ll with 98% similarity]
test/Instrumentation/SanitizerCoverage/coverage.ll [moved from test/Instrumentation/AddressSanitizer/coverage.ll with 60% similarity]
test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll [moved from test/Instrumentation/AddressSanitizer/coverage2-dbg.ll with 98% similarity]