[flang-commits] [clang] [flang] [flang][Driver] Add support for -f[no]keep-inline-functions option (PR #230007)
via flang-commits
flang-commits at lists.llvm.org
Sat Oct 17 09:49:52 PDT 2026
================
@@ -1444,6 +1444,29 @@ void CodeGenAction::executeAction() {
llvmModule->setTargetTriple(theTriple);
llvmModule->setDataLayout(theTriple.computeDataLayout(targetOpts.abi));
+ // -fkeep-inline-functions: retain definitions of inline functions (those
+ // marked alwaysinline) after they have been inlined into every caller.
+ // On ELF this uses llvm.compiler.used so the compiler keeps the definition
+ // but the linker may still drop it. Other object formats use llvm.used.
+ // This is matching Clang functionality.Only functions defined in this
----------------
shivaramaarao wrote:
addressed these comments. please review. thanks.
https://github.com/llvm/llvm-project/pull/230007
More information about the flang-commits
mailing list