From ca523f4f3d35c59869525a0c2bf391d7aa8760c4 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Wed, 25 Dec 2013 17:06:04 +0000 Subject: [PATCH] [ASan] Fix the tests broken by r198018 to check for private linkage of ASan-generated globals. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198020 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../AddressSanitizer/do-not-instrument-internal-globals.ll | 4 ++-- test/Instrumentation/AddressSanitizer/stack_layout.ll | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/Instrumentation/AddressSanitizer/do-not-instrument-internal-globals.ll b/test/Instrumentation/AddressSanitizer/do-not-instrument-internal-globals.ll index d4fd93c1647..0928c494154 100644 --- a/test/Instrumentation/AddressSanitizer/do-not-instrument-internal-globals.ll +++ b/test/Instrumentation/AddressSanitizer/do-not-instrument-internal-globals.ll @@ -16,5 +16,5 @@ declare void @_Z3fooPi(i32*) ; We create one global string constant for the stack frame above. ; It should have unnamed_addr and align 1. ; Make sure we don't create any other global constants. -; CHECK: = internal unnamed_addr constant{{.*}}align 1 -; CHECK-NOT: = internal unnamed_addr constant +; CHECK: = private unnamed_addr constant{{.*}}align 1 +; CHECK-NOT: = private unnamed_addr constant diff --git a/test/Instrumentation/AddressSanitizer/stack_layout.ll b/test/Instrumentation/AddressSanitizer/stack_layout.ll index f1f4f3f703b..6fa3cfc9df2 100644 --- a/test/Instrumentation/AddressSanitizer/stack_layout.ll +++ b/test/Instrumentation/AddressSanitizer/stack_layout.ll @@ -7,9 +7,9 @@ target triple = "x86_64-unknown-linux-gnu" declare void @Use(i8*) -; CHECK: internal unnamed_addr constant{{.*}}3 32 10 3 XXX 64 20 3 YYY 128 30 3 ZZZ -; CHECK: internal unnamed_addr constant{{.*}}3 32 5 3 AAA 64 55 3 BBB 160 555 3 CCC -; CHECK: internal unnamed_addr constant{{.*}}3 256 128 3 CCC 448 128 3 BBB 608 128 3 AAA +; CHECK: private unnamed_addr constant{{.*}}3 32 10 3 XXX 64 20 3 YYY 128 30 3 ZZZ +; CHECK: private unnamed_addr constant{{.*}}3 32 5 3 AAA 64 55 3 BBB 160 555 3 CCC +; CHECK: private unnamed_addr constant{{.*}}3 256 128 3 CCC 448 128 3 BBB 608 128 3 AAA define void @Func1() sanitize_address { entry: