Writer.h is intended to be included only by Writer.cpp and Driver.cpp.
Use of the header in other files are bad.
llvm-svn: 244106
#include "Chunks.h"
#include "InputFiles.h"
-#include "Writer.h"
+#include "Symbols.h"
#include "llvm/Object/COFF.h"
#include "llvm/Support/COFF.h"
#include "llvm/Support/Debug.h"
class OutputSection;
class SymbolBody;
+// Mask for section types (code, data, bss, disacardable, etc.)
+// and permissions (writable, readable or executable).
+const uint32_t PermMask = 0xFF0000F0;
+
// A Chunk represents a chunk of data that will occupy space in the
// output (if the resolver chose that). It may or may not be backed by
// a section of an input file. It could be linker-created data, or
#include "Chunks.h"
#include "Error.h"
#include "InputFiles.h"
-#include "Writer.h"
+#include "Symbols.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/LTO/LTOModule.h"
#include "llvm/Object/COFF.h"
namespace lld {
namespace coff {
-// Mask for section types (code, data, bss, disacardable, etc.)
-// and permissions (writable, readable or executable).
-const uint32_t PermMask = 0xFF0000F0;
-
// Implemented in ICF.cpp.
void doICF(const std::vector<Chunk *> &Chunks);