summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2016-02-24 22:12:18 +0000
committerAnna Zaks <ganna@apple.com>2016-02-24 22:12:18 +0000
commit40148f1716b5c75f0614e502de82bf1c92fd1b4c (patch)
tree133f62b81571898a4b57210485da5552420ed0af /llvm/test/Instrumentation
parent7b5caa4a72b111b4dc83c95c1ff4be5d539d7417 (diff)
downloadbcm5719-llvm-40148f1716b5c75f0614e502de82bf1c92fd1b4c.tar.gz
bcm5719-llvm-40148f1716b5c75f0614e502de82bf1c92fd1b4c.zip
[asan] Do not instrument globals in the special "LLVM" sections
llvm-svn: 261794
Diffstat (limited to 'llvm/test/Instrumentation')
-rw-r--r--llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-globals-darwin.ll2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-globals-darwin.ll b/llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-globals-darwin.ll
index 854f5cb851e..0ca8975a675 100644
--- a/llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-globals-darwin.ll
+++ b/llvm/test/Instrumentation/AddressSanitizer/do-not-instrument-globals-darwin.ll
@@ -11,9 +11,11 @@ target triple = "x86_64-apple-macosx10.10.0"
@.str_noinst = private unnamed_addr constant [4 x i8] c"aaa\00", section "llvm.metadata"
@.str_noinst_prof = private unnamed_addr constant [4 x i8] c"aaa\00", section "__DATA,__llvm_covmap"
+@.str_noinst_LLVM = private unnamed_addr constant [4 x i8] c"aaa\00", section "__LLVM,__not_visible"
@.str_inst = private unnamed_addr constant [4 x i8] c"aaa\00"
; CHECK-NOT: {{asan_gen.*str_noinst}}
; CHECK-NOT: {{asan_gen.*str_noinst_prof}}
+; CHECK-NOT: {{asan_gen.*str_noinst_LLVM}}
; CHECK: {{asan_gen.*str_inst}}
; CHECK: @asan.module_ctor
OpenPOWER on IntegriCloud