mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 09:46:06 +00:00

On one hand, we intend to force import all functions when the option is enabled. On the other hand, we currently drop definitions of some functions and convert them to declarations, which contradicts this intent. With this PR, functions will no longer be converted to declarations when `force-import-all` is enabled.
14 lines
209 B
LLVM
14 lines
209 B
LLVM
define void @f1(ptr %v) #0 {
|
|
entry:
|
|
call void @weak_common(ptr %v)
|
|
ret void
|
|
}
|
|
|
|
define weak hidden void @weak_common(ptr %v) #0 {
|
|
entry:
|
|
store i32 12345, ptr %v
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { noinline }
|