From d1268bd8db14f4e029b4f412b867641318596ada Mon Sep 17 00:00:00 2001 From: Ryan Govostes Date: Mon, 28 Mar 2016 20:42:56 +0000 Subject: [PATCH] [asan] Fix testcase for r264645 llvm-svn: 264652 --- .../AddressSanitizer/global_metadata_darwin.ll | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/llvm/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll b/llvm/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll index 2fcbe78..8bf17ca 100644 --- a/llvm/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll +++ b/llvm/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll @@ -15,8 +15,8 @@ target triple = "x86_64-apple-macosx10.11.0" !1 = !{!"test-globals.c", i32 1, i32 5} -; Test that there is a Needle global variable: -; CHECK: @__asan_needle = internal global i64 0 +; Test that there is the flag global variable: +; CHECK: @__asan_globals_registered = common global i64 0 ; Find the metadata for @global: ; CHECK: [[METADATA:@[0-9]+]] = internal global {{.*}} @global {{.*}} section "__DATA,__asan_globals,regular", align 1 @@ -24,14 +24,14 @@ target triple = "x86_64-apple-macosx10.11.0" ; Find the liveness binder for @global and its metadata: ; CHECK: @{{[0-9]+}} = internal global {{.*}} @global {{.*}} [[METADATA]] {{.*}} section "__DATA,__asan_liveness,regular,live_support" -; Test that __asan_apply_to_globals is invoked from the constructor: +; Test that __asan_register_image_globals is invoked from the constructor: ; CHECK-LABEL: define internal void @asan.module_ctor ; CHECK-NOT: ret -; CHECK: call void @__asan_apply_to_globals(i64 ptrtoint (void (i64, i64)* @__asan_register_globals to i64), i64 ptrtoint (i64* @__asan_needle to i64)) +; CHECK: call void @__asan_register_image_globals(i64 ptrtoint (i64* @__asan_globals_registered to i64)) ; CHECK: ret -; Test that __asan_apply_to_globals is invoked from the destructor: +; Test that __asan_unregister_image_globals is invoked from the destructor: ; CHECK-LABEL: define internal void @asan.module_dtor ; CHECK-NOT: ret -; CHECK: call void @__asan_apply_to_globals(i64 ptrtoint (void (i64, i64)* @__asan_unregister_globals to i64), i64 ptrtoint (i64* @__asan_needle to i64)) +; CHECK: call void @__asan_unregister_image_globals(i64 ptrtoint (i64* @__asan_globals_registered to i64)) ; CHECK: ret -- 2.7.4