[clang] [lld] [llvm] Add FatLTO support for COFF (PR #165529)

2025-10-29 Thread Stefan Schmidt via cfe-commits
thrimbor wrote: I rebased the PR and added a ReleaseNote entry for LLD based on the one that was added for ELF FatLTO. This is the first time I've done that, so if there's something not quite right with it please let me know. https://github.com/llvm/llvm-project/pull/165529 ___

[clang] [lld] [llvm] Add FatLTO support for COFF (PR #165529)

2025-10-29 Thread Stefan Schmidt via cfe-commits
https://github.com/thrimbor updated https://github.com/llvm/llvm-project/pull/165529 >From 03f55c06fbee60ab6541a5966dbfcb4d9cee3bb1 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Mon, 27 Oct 2025 22:32:33 +0100 Subject: [PATCH 1/2] [clang][llvm] Enable fat-lto-object support for COFF targ

[clang] [lld] [llvm] Add FatLTO support for COFF (PR #165529)

2025-10-29 Thread Stefan Schmidt via cfe-commits
https://github.com/thrimbor updated https://github.com/llvm/llvm-project/pull/165529 >From 62663f76f80aa96f78bc6fd277bd57b51197d4de Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Mon, 27 Oct 2025 22:32:33 +0100 Subject: [PATCH 1/2] [clang][llvm] Enable fat-lto-object support for COFF targ

[clang] [lld] [llvm] Add FatLTO support for COFF (PR #165529)

2025-10-29 Thread Stefan Schmidt via cfe-commits
@@ -27,7 +27,7 @@ PreservedAnalyses EmbedBitcodePass::run(Module &M, ModuleAnalysisManager &AM) { reportFatalUsageError("Can only embed the module once"); Triple T(M.getTargetTriple()); - if (T.getObjectFormat() != Triple::ELF) + if (T.getObjectFormat() != Triple::ELF

[clang] [lld] [llvm] Add FatLTO support for COFF (PR #165529)

2025-10-29 Thread Stefan Schmidt via cfe-commits
https://github.com/thrimbor updated https://github.com/llvm/llvm-project/pull/165529 >From 1b1fe1e3e40e985f320355c40d6fca63e260be52 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Mon, 27 Oct 2025 22:32:33 +0100 Subject: [PATCH 1/2] [clang][llvm] Enable fat-lto-object support for COFF targ

[clang] [lld] [llvm] Add FatLTO support for COFF (PR #165529)

2025-10-29 Thread Stefan Schmidt via cfe-commits
https://github.com/thrimbor created https://github.com/llvm/llvm-project/pull/165529 This adds support for FatLTO to COFF targets in clang and lld. The changes are adapted from https://github.com/llvm/llvm-project/commit/610fc5cbcc8b68879c562f6458608afe2473ab7f and https://github.com/llvm/ll