mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 15:39:06 +00:00
c0521dd4a2
With this I think that now llvm-link, lld and the gold plugin should agree on which symbol is kept. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@264292 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
280 B
LLVM
20 lines
280 B
LLVM
$foo = comdat any
|
|
$bar = comdat any
|
|
|
|
define linkonce_odr i32 @f1() comdat($foo) {
|
|
ret i32 1
|
|
}
|
|
|
|
define void @f2() comdat($foo) {
|
|
call i32 @g2()
|
|
ret void
|
|
}
|
|
|
|
define linkonce_odr i32 @g1() comdat($bar) {
|
|
ret i32 1
|
|
}
|
|
|
|
define linkonce_odr i32 @g2() comdat($bar) {
|
|
ret i32 1
|
|
}
|