diff options
| author | George Karpenkov <ekarpenkov@apple.com> | 2017-06-14 23:40:25 +0000 |
|---|---|---|
| committer | George Karpenkov <ekarpenkov@apple.com> | 2017-06-14 23:40:25 +0000 |
| commit | 406c11310383849cbcb48073fc0a7698683c795b (patch) | |
| tree | b17d95f10f6f36670438d95ec26fa768331968e8 /llvm/lib | |
| parent | 2aecdde5124acc459604b53db71bb2be90e82211 (diff) | |
| download | bcm5719-llvm-406c11310383849cbcb48073fc0a7698683c795b.tar.gz bcm5719-llvm-406c11310383849cbcb48073fc0a7698683c795b.zip | |
Fixing section name for Darwin platforms for sanitizer coverage
On Darwin, section names have a 16char length limit.
llvm-svn: 305429
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Fuzzer/test/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/test/CMakeLists.txt b/llvm/lib/Fuzzer/test/CMakeLists.txt index bb9406297da..1cf6c9502a2 100644 --- a/llvm/lib/Fuzzer/test/CMakeLists.txt +++ b/llvm/lib/Fuzzer/test/CMakeLists.txt @@ -206,7 +206,7 @@ include_directories(..) add_subdirectory(no-coverage) add_subdirectory(trace-pc) add_subdirectory(ubsan) -if (NOT APPLE AND NOT MSVC) +if (NOT MSVC) add_subdirectory(inline-8bit-counters) endif() diff --git a/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp b/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp index 8aa40d1759d..e3c36c98ab0 100644 --- a/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp +++ b/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp @@ -61,7 +61,7 @@ static const char *const SanCov8bitCountersInitName = "__sanitizer_cov_8bit_counters_init"; static const char *const SanCovGuardsSectionName = "sancov_guards"; -static const char *const SanCovCountersSectionName = "sancov_counters"; +static const char *const SanCovCountersSectionName = "sancov_cntrs"; static cl::opt<int> ClCoverageLevel( "sanitizer-coverage-level", |

