summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-09-11 20:10:40 +0000
committerMatt Morehouse <mascasa@google.com>2018-09-11 20:10:40 +0000
commit7ce60324321a34c49aaf4f540038c6184253502c (patch)
tree5f1326b5e6d0f59fbd61d2bba45efcc6382b3a1f /llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll
parent277b808ad394d0549972b08926b14f61c2017386 (diff)
downloadbcm5719-llvm-7ce60324321a34c49aaf4f540038c6184253502c.tar.gz
bcm5719-llvm-7ce60324321a34c49aaf4f540038c6184253502c.zip
[SanitizerCoverage] Create comdat for global arrays.
Summary: Place global arrays in comdat sections with their associated functions. This makes sure they are stripped along with the functions they reference, even on the BFD linker. Reviewers: eugenis Reviewed By: eugenis Subscribers: eraman, hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D51902 llvm-svn: 341987
Diffstat (limited to 'llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll')
-rw-r--r--llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll b/llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll
index 597f77f3c8c..88141678b6c 100644
--- a/llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll
+++ b/llvm/test/Instrumentation/SanitizerCoverage/inline-8bit-counters.ll
@@ -5,7 +5,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
target triple = "x86_64-unknown-linux-gnu"
define void @foo() {
entry:
-; CHECK: section "__sancov_cntrs", align 1
+; CHECK: section "__sancov_cntrs", comdat($foo), align 1
; CHECK: %0 = load i8, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @__sancov_gen_, i64 0, i64 0), !nosanitize
; CHECK: %1 = add i8 %0, 1
; CHECK: store i8 %1, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @__sancov_gen_, i64 0, i64 0), !nosanitize
OpenPOWER on IntegriCloud