Please use GitHub pull requests for new patches. Phabricator shutdown timeline
Differential D39775 Diff 122017 llvm/test/Instrumentation/AddressSanitizer/global_metadata_windows.ll
Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/Instrumentation/AddressSanitizer/global_metadata_windows.ll
; Test that global metadata is placed in a separate section on Windows, and that | ; Test that global metadata is placed in a separate section on Windows, and that | ||||
; it is in the same comdat group as the instrumented global. This ensures that | ; it is in the same comdat group as the instrumented global. This ensures that | ||||
; linker dead stripping (/OPT:REF) works as intended. | ; linker dead stripping (/OPT:REF) works as intended. | ||||
; FIXME: Later we can use this to instrument linkonce odr string literals. | ; FIXME: Later we can use this to instrument linkonce odr string literals. | ||||
; RUN: opt < %s -asan -asan-module -asan-globals-live-support=1 -S | FileCheck %s | ; RUN: %opt_asan < %s -asan -asan-module -asan-globals-live-support=1 -S | FileCheck %s | ||||
target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" | target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128" | ||||
target triple = "x86_64-pc-windows-msvc19.0.24215" | target triple = "x86_64-pc-windows-msvc19.0.24215" | ||||
$mystr = comdat any | $mystr = comdat any | ||||
; CHECK: $dead_global = comdat noduplicates | ; CHECK: $dead_global = comdat noduplicates | ||||
; CHECK: $private_str = comdat noduplicates | ; CHECK: $private_str = comdat noduplicates | ||||
Show All 32 Lines |