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

Daniel Thornburgh via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 15 11:19:14 PST 2026


================
@@ -51,6 +51,7 @@ add_llvm_component_library(LLVMObject
   BinaryFormat
   MCParser
   Support
+  Target
----------------
mysterymath wrote:

Correct me if I'm wrong, but at least at present, information about which symbols must be preserved *is* locked away behind a Target interface (TLI). I do think we can and should make this no longer the case, but until that time, I'd generally prefer having user-facing semantics be cleaner than LLVM-developer-facing semantics. Obvious exception is if this imposes a serious maintenance issue; is that the case here? Otherwise, would a FIXME suffice?

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


More information about the cfe-commits mailing list