mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
b3db052a71
Linker::LinkOnlyNeeded should always import globals with AppendingLinkage. This resolves PR33527. Differential Revision: https://reviews.llvm.org/D34448 llvm-svn: 310522
21 lines
381 B
LLVM
21 lines
381 B
LLVM
define internal void @ctor1() {
|
|
call void @func1()
|
|
ret void
|
|
}
|
|
|
|
define internal void @ctor2() {
|
|
ret void
|
|
}
|
|
|
|
define void @func1() {
|
|
ret void
|
|
}
|
|
|
|
define void @unused() {
|
|
ret void
|
|
}
|
|
|
|
@llvm.global_ctors = appending global[2 x{i32, void() *, i8 * }] [
|
|
{i32, void() *, i8 * } { i32 2, void() *@ctor1, i8 *null},
|
|
{i32, void() *, i8 * } { i32 7, void() *@ctor2, i8 *null}]
|