mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
bad5f185df
Linker::LinkOnlyNeeded should always import globals with AppendingLinkage. This resolves PR33527. Differential Revision: https://reviews.llvm.org/D34448 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310522 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
381 B
LLVM
21 lines
381 B
LLVM
define internal void @dtor1() {
|
|
call void @func1()
|
|
ret void
|
|
}
|
|
|
|
define internal void @dtor2() {
|
|
ret void
|
|
}
|
|
|
|
define void @func1() {
|
|
ret void
|
|
}
|
|
|
|
define void @unused() {
|
|
ret void
|
|
}
|
|
|
|
@llvm.global_dtors = appending global[2 x{i32, void() *, i8 * }] [
|
|
{i32, void() *, i8 * } { i32 2, void() *@dtor1, i8 *null},
|
|
{i32, void() *, i8 * } { i32 7, void() *@dtor2, i8 *null}]
|