mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
49abbde699
* merge two weak functions by making them both alias a third non-weak fn * don't reimplement CallSite::hasArgument * whitelist the safe linkage types llvm-svn: 58568
12 lines
240 B
LLVM
12 lines
240 B
LLVM
; RUN: llvm-as < %s | opt -mergefunc | llvm-dis | grep {alias weak} | count 2
|
|
|
|
define weak i32 @sum(i32 %x, i32 %y) {
|
|
%sum = add i32 %x, %y
|
|
ret i32 %sum
|
|
}
|
|
|
|
define weak i32 @add(i32 %x, i32 %y) {
|
|
%sum = add i32 %x, %y
|
|
ret i32 %sum
|
|
}
|