It sounds like you want to compile with LTO (-flto) after removing the 'inline' from 'foo'. That should enable the cross-compilation-unit inlining you want.
--paulr
_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
Hi Soham,
“extern inline” keyword will help in this case, with this keyword compiler is forced to keeps the definition of the function and make it available for the external usage.
Also it retains the “inlinehint” attribute on the function, with that lto inliner may make it inline.
Best,
Ashutosh