From 1b41409079b652259aac40976d9f02714930e6fc Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Thu, 18 May 2017 17:26:00 +0000 Subject: [PATCH] Use a forward declaration. NFC. llvm-svn: 303363 --- lld/ELF/MapFile.cpp | 1 + lld/ELF/MapFile.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lld/ELF/MapFile.cpp b/lld/ELF/MapFile.cpp index 23c63e845c9a..c3f4f5a48485 100644 --- a/lld/ELF/MapFile.cpp +++ b/lld/ELF/MapFile.cpp @@ -21,6 +21,7 @@ #include "MapFile.h" #include "InputFiles.h" +#include "OutputSections.h" #include "Strings.h" #include "SymbolTable.h" #include "Threads.h" diff --git a/lld/ELF/MapFile.h b/lld/ELF/MapFile.h index 24d636890e53..89d4d2d41199 100644 --- a/lld/ELF/MapFile.h +++ b/lld/ELF/MapFile.h @@ -10,10 +10,11 @@ #ifndef LLD_ELF_MAPFILE_H #define LLD_ELF_MAPFILE_H -#include "OutputSections.h" +#include namespace lld { namespace elf { +class OutputSection; template void writeMapFile(llvm::ArrayRef OutputSections); }