[lld] [lld] Add missing includes. (PR #143453)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 9 15:33:32 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lld-elf
Author: Jorge Gorbe Moya (slackito)
<details>
<summary>Changes</summary>
Some inline methods in these headers require a complete type but the corresponding include was missing.
---
Full diff: https://github.com/llvm/llvm-project/pull/143453.diff
2 Files Affected:
- (modified) lld/COFF/TypeMerger.h (+1)
- (modified) lld/ELF/DWARF.h (+1)
``````````diff
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"
``````````
</details>
https://github.com/llvm/llvm-project/pull/143453
More information about the llvm-commits
mailing list