summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2018-09-11 15:23:14 +0000
committerMatt Morehouse <mascasa@google.com>2018-09-11 15:23:14 +0000
commiteac270caf45ce957daf3c01b01a5752a818344bd (patch)
tree8b5f5ac01d219822e55b3a2fa825dde2030b16c8 /llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll
parent873cae5ae7efdbe9fdfe7b7ffba923516b7d14af (diff)
downloadbcm5719-llvm-eac270caf45ce957daf3c01b01a5752a818344bd.tar.gz
bcm5719-llvm-eac270caf45ce957daf3c01b01a5752a818344bd.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: 341951
Diffstat (limited to 'llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll')
-rw-r--r--llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll b/llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll
index 7b9b2fa85b9..888277a4c50 100644
--- a/llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll
+++ b/llvm/test/Instrumentation/SanitizerCoverage/pc-table.ll
@@ -17,7 +17,7 @@ entry:
ret void
}
-; CHECK: private constant [6 x i64*] [{{.*}}@foo{{.*}}blockaddress{{.*}}blockaddress{{.*}}], section "__sancov_pcs", align 8
+; CHECK: private constant [6 x i64*] [{{.*}}@foo{{.*}}blockaddress{{.*}}blockaddress{{.*}}], section "__sancov_pcs", comdat($foo), align 8
; CHECK: define internal void @sancov.module_ctor
; CHECK: call void @__sanitizer_cov
; CHECK: call void @__sanitizer_cov_pcs_init
OpenPOWER on IntegriCloud