coff-weak.ll
910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
; RUN: llc -mtriple=i686-windows-msvc -o - %s | FileCheck -check-prefix=X86 %s
; RUN: llc -mtriple=x86_64-windows-msvc -o - %s | FileCheck -check-prefix=X64 %s
; X86: .weak _foo
; X64: .weak foo
define weak void @foo() {
ret void
}
; X86: .weak _bar
; X64: .weak bar
define weak_odr void @bar() {
ret void
}
; X86-NOT: .weak _bar_comdat
; X64-NOT: .weak bar_comdat
$bar_comdat = comdat any
define weak_odr void @bar_comdat() comdat {
ret void
}
; X86: .weak _baz
; X64: .weak baz
define linkonce void @baz() {
ret void
}
; X86-NOT: .weak _baz_comdat
; X64-NOT: .weak baz_comdat
$baz_comdat = comdat any
define linkonce void @baz_comdat() comdat {
ret void
}
; X86: .weak _quux
; X64: .weak quux
define linkonce_odr void @quux() {
ret void
}
; X86-NOT: .weak _quux_comdat
; X64-NOT: .weak quux_comdat
$quux_comdat = comdat any
define linkonce_odr void @quux_comdat() comdat {
ret void
}