TSan: Use `createSanitizerCtor` to create ctor, and call `__tsan_init`
[oota-llvm.git] / test / Instrumentation / ThreadSanitizer / tsan_basic.ll
index 22582ebda73af05a8b9078b750fbdb3d03c3e9e8..7e049c548f2232309726d6a6908941d1c5697e73 100644 (file)
@@ -9,7 +9,7 @@ entry:
   ret i32 %tmp1
 }
 
-; CHECK: @llvm.global_ctors = {{.*}}@__tsan_init
+; CHECK: @llvm.global_ctors = {{.*}}@tsan.module_ctor
 
 ; CHECK: define i32 @read_4_bytes(i32* %a)
 ; CHECK:        call void @__tsan_func_entry(i8* %0)
@@ -53,3 +53,6 @@ entry:
 ; CHECK: call i8* @memset
 ; CHECK: ret void
 }
+
+; CHECK: define internal void @tsan.module_ctor()
+; CHECK: call void @__tsan_init()