[lld] [llvm] [DTLTO][ELF][COFF] Add archive support for DTLTO. (PR #157043)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 10 07:20:35 PST 2025
================
@@ -33,6 +33,13 @@
#include "llvm/Transforms/IPO/FunctionAttrs.h"
#include "llvm/Transforms/IPO/FunctionImport.h"
+namespace llvm {
+namespace lto {
+class LTO;
+}
+} // namespace llvm
----------------
teresajohnson wrote:
I just noticed this because clang-format is complaining about the extra line below. Why is this new block needed? I don't see any added references to the LTO class below that would require the forward declaration - can it be removed? In fact, there is already a forward declaration of LTO at line 121 below.
https://github.com/llvm/llvm-project/pull/157043
More information about the llvm-commits
mailing list