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)
commit29a18dcbc531a0a30c9cabbb4e02b306d95d4f9b
tree76432df6f4f85f474930d0f27ebd06ad5571c997
parenteb63c5e28c29fdc15370caae51b35f089a584aff
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

llvm-svn: 221718
llvm/include/llvm/InitializePasses.h
llvm/include/llvm/Transforms/Instrumentation.h
llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
llvm/lib/Transforms/Instrumentation/CMakeLists.txt
llvm/lib/Transforms/Instrumentation/Instrumentation.cpp
llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp [new file with mode: 0644]
llvm/test/Instrumentation/SanitizerCoverage/coverage-dbg.ll [moved from llvm/test/Instrumentation/AddressSanitizer/coverage-dbg.ll with 98% similarity]
llvm/test/Instrumentation/SanitizerCoverage/coverage.ll [moved from llvm/test/Instrumentation/AddressSanitizer/coverage.ll with 60% similarity]
llvm/test/Instrumentation/SanitizerCoverage/coverage2-dbg.ll [moved from llvm/test/Instrumentation/AddressSanitizer/coverage2-dbg.ll with 98% similarity]