annotate test/Linker/Inputs/only-needed-dtors.ll @ 146:3fc4d5c3e21e

set tail call flag for code segment in CGCAll
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 19:23:36 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 define internal void @dtor1() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 call void @func1()
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6 define internal void @dtor2() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 define void @func1() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 define void @unused() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 ret void
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 @llvm.global_dtors = appending global[2 x{i32, void() *, i8 * }] [
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 {i32, void() *, i8 * } { i32 2, void() *@dtor1, i8 *null},
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
20 {i32, void() *, i8 * } { i32 7, void() *@dtor2, i8 *null}]