[lld] [lld] Add missing includes. (PR #143453)

Jorge Gorbe Moya via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 9 15:33:02 PDT 2025


https://github.com/slackito created https://github.com/llvm/llvm-project/pull/143453

Some inline methods in these headers require a complete type but the corresponding include was missing.

>From 81be1221379256eda02db6e21f3e01ada41b1a98 Mon Sep 17 00:00:00 2001
From: Jorge Gorbe Moya <jgorbe at google.com>
Date: Mon, 9 Jun 2025 15:31:55 -0700
Subject: [PATCH] [lld] Add missing includes.

Some inline methods in these headers require a complete type but the
corresponding include was missing.
---
 lld/COFF/TypeMerger.h | 1 +
 lld/ELF/DWARF.h       | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lld/COFF/TypeMerger.h b/lld/COFF/TypeMerger.h
index b4e3d6e7d9fdb..effb6d603a592 100644
--- a/lld/COFF/TypeMerger.h
+++ b/lld/COFF/TypeMerger.h
@@ -9,6 +9,7 @@
 #ifndef LLD_COFF_TYPEMERGER_H
 #define LLD_COFF_TYPEMERGER_H
 
+#include "COFFLinkerContext.h"
 #include "Config.h"
 #include "DebugTypes.h"
 #include "lld/Common/Timer.h"
diff --git a/lld/ELF/DWARF.h b/lld/ELF/DWARF.h
index 64c25c706c343..19b17647378bd 100644
--- a/lld/ELF/DWARF.h
+++ b/lld/ELF/DWARF.h
@@ -10,6 +10,7 @@
 #define LLD_ELF_DWARF_H
 
 #include "InputFiles.h"
+#include "InputSection.h"
 #include "llvm/ADT/STLExtras.h"
 #include "llvm/ADT/STLFunctionalExtras.h"
 #include "llvm/DebugInfo/DWARF/DWARFContext.h"



More information about the llvm-commits mailing list