mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-20 19:19:55 +00:00
3e3383f5f7
We were not handling the case where an entry must be dropped and the destination module has no llvm.global_ctors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254241 91177308-0d34-0410-b5e6-96231b3b80d8
7 lines
223 B
LLVM
7 lines
223 B
LLVM
$foo = comdat any
|
|
@foo = global i8 1, comdat
|
|
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @bar, i8* @foo }]
|
|
define void @bar() comdat($foo) {
|
|
ret void
|
|
}
|