Use a forward declaration. NFC.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 18 May 2017 17:26:00 +0000 (17:26 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 18 May 2017 17:26:00 +0000 (17:26 +0000)
llvm-svn: 303363

lld/ELF/MapFile.cpp
lld/ELF/MapFile.h

index 23c63e8..c3f4f5a 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "MapFile.h"
 #include "InputFiles.h"
+#include "OutputSections.h"
 #include "Strings.h"
 #include "SymbolTable.h"
 #include "Threads.h"
index 24d6368..89d4d2d 100644 (file)
 #ifndef LLD_ELF_MAPFILE_H
 #define LLD_ELF_MAPFILE_H
 
-#include "OutputSections.h"
+#include <llvm/ADT/ArrayRef.h>
 
 namespace lld {
 namespace elf {
+class OutputSection;
 template <class ELFT>
 void writeMapFile(llvm::ArrayRef<OutputSection *> OutputSections);
 }