0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-27 09:46:06 +00:00
Shilei Tian b0fede358f
[ThinLTO] Don't convert functions to declarations if force-import-all is enabled ()
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.
2025-04-12 18:22:22 -04:00

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 }