mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
7f3dd14a90
This prevents gold from printing a warning when trying to export these symbols via the asan dynamic list after ThinLTO promotes them from private symbols to external symbols with hidden visibility. Differential Revision: https://reviews.llvm.org/D49498 llvm-svn: 337428
10 lines
419 B
LLVM
10 lines
419 B
LLVM
; This test checks that we don't instrument globals created by profiling passes.
|
|
; RUN: opt < %s -asan -asan-module -S | FileCheck %s
|
|
|
|
@__profc_test = private global [1 x i64] zeroinitializer, section "__DATA,__llvm_prf_cnts", align 8
|
|
@__llvm_gcov_ctr = internal global [1 x i64] zeroinitializer
|
|
|
|
; CHECK-DAG: @asan.module_ctor
|
|
; CHECK-NOT: @___asan_gen{{.*}}__llvm_gcov_ctr
|
|
; CHECK-NOT: @___asan_gen{{.*}}__profc_test
|