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 /lib/Serialization/Module.cpp | |
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 'lib/Serialization/Module.cpp')
-rw-r--r-- | lib/Serialization/Module.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Serialization/Module.cpp b/lib/Serialization/Module.cpp index fd18fb7798..241b6ba88c 100644 --- a/lib/Serialization/Module.cpp +++ b/lib/Serialization/Module.cpp @@ -20,7 +20,7 @@ using namespace clang; using namespace serialization; using namespace reader; -Module::Module(ModuleKind Kind) +ModuleFile::ModuleFile(ModuleKind Kind) : Kind(Kind), DirectlyImported(false), SizeInBits(0), LocalNumSLocEntries(0), SLocEntryBaseID(0), SLocEntryBaseOffset(0), SLocEntryOffsets(0), @@ -39,7 +39,7 @@ Module::Module(ModuleKind Kind) LocalNumTypes(0), TypeOffsets(0), BaseTypeIndex(0), StatCache(0) {} -Module::~Module() { +ModuleFile::~ModuleFile() { for (DeclContextInfosMap::iterator I = DeclContextInfos.begin(), E = DeclContextInfos.end(); I != E; ++I) { @@ -68,7 +68,7 @@ dumpLocalRemap(StringRef Name, } } -void Module::dump() { +void ModuleFile::dump() { llvm::errs() << "\nModule: " << FileName << "\n"; if (!Imports.empty()) { llvm::errs() << " Imports: "; |