diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-11-30 23:21:26 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-11-30 23:21:26 +0000 |
commit | 1a4761edca58c6b559de825b9abfb66f7f1ba94a (patch) | |
tree | bd17d1a3341870f9378db26a09045b3bb2db8426 /include/clang/Serialization/Module.h | |
parent | 8d39c3ddfc17d9e768a17eb0ce9f11c33bf9d50a (diff) |
Promote ModuleMap::Module to a namespace-scope class in the Basic
library, since modules cut across all of the libraries. Rename
serialization::Module to serialization::ModuleFile to side-step the
annoying naming conflict. Prune a bunch of ModuleMap.h includes that
are no longer needed (most files only needed the Module type).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Serialization/Module.h')
-rw-r--r-- | include/clang/Serialization/Module.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/clang/Serialization/Module.h b/include/clang/Serialization/Module.h index 92ff8d8920..8874679eea 100644 --- a/include/clang/Serialization/Module.h +++ b/include/clang/Serialization/Module.h @@ -17,7 +17,6 @@ #include "clang/Serialization/ASTBitCodes.h" #include "clang/Serialization/ContinuousRangeMap.h" -#include "clang/Lex/ModuleMap.h" #include "clang/Basic/SourceLocation.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/SetVector.h" @@ -27,7 +26,8 @@ namespace clang { class DeclContext; - +class Module; + namespace serialization { /// \brief Specifies the kind of module that has been loaded. @@ -55,10 +55,10 @@ struct DeclContextInfo { /// of some sort loaded as the main file, all of which are specific formulations /// of the general notion of a "module". A module may depend on any number of /// other modules. -class Module { +class ModuleFile { public: - Module(ModuleKind Kind); - ~Module(); + ModuleFile(ModuleKind Kind); + ~ModuleFile(); // === General information === @@ -202,7 +202,7 @@ public: const char *HeaderFileFrameworkStrings; // === Submodule information === - llvm::SmallVector<ModuleMap::Module *, 2> Submodules; + llvm::SmallVector<Module *, 2> Submodules; // === Selectors === @@ -306,10 +306,10 @@ public: void *StatCache; /// \brief List of modules which depend on this module - llvm::SetVector<Module *> ImportedBy; + llvm::SetVector<ModuleFile *> ImportedBy; /// \brief List of modules which this module depends on - llvm::SetVector<Module *> Imports; + llvm::SetVector<ModuleFile *> Imports; /// \brief Determine whether this module was directly imported at /// any point during translation. |