[clang] [lld] [llvm] [LTO][LLD] Prevent invalid LTO libfunc transforms (PR #164916)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 22 05:07:25 PST 2026


================
@@ -234,6 +234,10 @@ static cl::opt<bool>
     AllVtablesHaveTypeInfos("all-vtables-have-type-infos", cl::Hidden,
                             cl::desc("All vtables have type infos"));
 
+static cl::list<std::string>
+    BitcodeLibFuncs("bitcode-libfuncs", cl::Hidden,
+                    cl::desc("set of libfuncs implemented in bitcode"));
----------------
arsenm wrote:

Who / what is supposed to set this flag? If the intended use is your LTO invocation needs to list every system library function, that's not really usable. I expect all of this to work without manual intervention 

https://github.com/llvm/llvm-project/pull/164916


More information about the cfe-commits mailing list