mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
832680bbb5
With this I think that now llvm-link, lld and the gold plugin should agree on which symbol is kept. llvm-svn: 264292
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
|
|
}
|