[llvm] r264652 - [asan] Fix testcase for r264645
Ryan Govostes via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 28 13:42:56 PDT 2016
Author: rgov
Date: Mon Mar 28 15:42:56 2016
New Revision: 264652
URL: http://llvm.org/viewvc/llvm-project?rev=264652&view=rev
Log:
[asan] Fix testcase for r264645
Modified:
llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll
Modified: llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll?rev=264652&r1=264651&r2=264652&view=diff
==============================================================================
--- llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll (original)
+++ llvm/trunk/test/Instrumentation/AddressSanitizer/global_metadata_darwin.ll Mon Mar 28 15:42:56 2016
@@ -15,8 +15,8 @@ target triple = "x86_64-apple-macosx10.1
!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.1
; 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
More information about the llvm-commits
mailing list