From c3d72c3cc524b05d278886725831f32c276896cd Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 21 Nov 2017 01:09:10 +0000 Subject: [PATCH] Make some headers modular by adding missing includes/forward decls. llvm-svn: 318718 --- lld/include/lld/ReaderWriter/YamlContext.h | 1 + lld/lib/ReaderWriter/MachO/FlatNamespaceFile.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lld/include/lld/ReaderWriter/YamlContext.h b/lld/include/lld/ReaderWriter/YamlContext.h index a44ec1d..b97d21f 100644 --- a/lld/include/lld/ReaderWriter/YamlContext.h +++ b/lld/include/lld/ReaderWriter/YamlContext.h @@ -18,6 +18,7 @@ namespace lld { class File; class LinkingContext; +class Registry; namespace mach_o { namespace normalized { struct NormalizedFile; diff --git a/lld/lib/ReaderWriter/MachO/FlatNamespaceFile.h b/lld/lib/ReaderWriter/MachO/FlatNamespaceFile.h index 76d2958..7ccd4f1 100644 --- a/lld/lib/ReaderWriter/MachO/FlatNamespaceFile.h +++ b/lld/lib/ReaderWriter/MachO/FlatNamespaceFile.h @@ -10,7 +10,9 @@ #ifndef LLD_READER_WRITER_MACHO_FLAT_NAMESPACE_FILE_H #define LLD_READER_WRITER_MACHO_FLAT_NAMESPACE_FILE_H +#include "Atoms.h" #include "lld/Core/SharedLibraryFile.h" +#include "lld/ReaderWriter/MachOLinkingContext.h" #include "llvm/Support/Debug.h" namespace lld { -- 2.7.4