1 ; RUN: llc -mtriple i386-pc-win32 < %s \
2 ; RUN: | FileCheck --check-prefixes=CHECK,CHECK-MSVC %s
3 ; RUN: llc -mtriple i386-pc-mingw32 < %s \
4 ; RUN: | FileCheck --check-prefixes=CHECK,CHECK-MINGW %s
5 ; RUN: llc -mtriple i386-pc-mingw32 < %s \
6 ; RUN: | FileCheck --check-prefix=NOTEXPORTED %s
10 ; CHECK: .globl _notHidden
11 define void @notHidden() {
16 define hidden void @f1() {
21 define hidden void @f2() unnamed_addr {
25 declare hidden void @notDefined()
27 ; CHECK: .globl _stdfun@0
28 define hidden x86_stdcallcc void @stdfun() nounwind {
35 define linkonce_odr hidden void @lnk1() comdat {
42 define linkonce_odr hidden void @lnk2() alwaysinline comdat {
48 @Var1 = hidden global i32 1, align 4
52 @Var2 = hidden unnamed_addr constant i32 1
55 @Var3 = common hidden global i32 0, align 4
57 ; CHECK: .globl "_complex-name"
58 @"complex-name" = hidden global i32 1, align 4
60 ; CHECK: .globl _complex.name
61 @"complex.name" = hidden global i32 1, align 4
64 ; Verify items that should not be marked hidden do not appear in the directives.
65 ; We use a separate check prefix to avoid confusion between -NOT and -SAME.
66 ; NOTEXPORTED: .section .drectve
67 ; NOTEXPORTED-NOT: :notHidden
68 ; NOTEXPORTED-NOT: :notDefined
70 ; CHECK-MSVC-NOT: .section .drectve
71 ; CHECK-MINGW: .section .drectve
72 ; CHECK-MINGW: .ascii " -exclude-symbols:f1"
73 ; CHECK-MINGW: .ascii " -exclude-symbols:f2"
74 ; CHECK-MINGW: .ascii " -exclude-symbols:stdfun@0"
75 ; CHECK-MINGW: .ascii " -exclude-symbols:lnk1"
76 ; CHECK-MINGW: .ascii " -exclude-symbols:lnk2"
77 ; CHECK-MINGW: .ascii " -exclude-symbols:Var1"
78 ; CHECK-MINGW: .ascii " -exclude-symbols:Var2"
79 ; CHECK-MINGW: .ascii " -exclude-symbols:Var3"
80 ; CHECK-MINGW: .ascii " -exclude-symbols:\"complex-name\""
81 ; CHECK-MINGW: .ascii " -exclude-symbols:\"complex.name\""