diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-01 00:59:36 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-01 00:59:36 +0000 |
commit | 26ced127b7d443fcf3472463c9f39c2376bd9d70 (patch) | |
tree | af3ec0694403f2c7aa0aae06ab169a202f67cb10 /lib/Serialization/Module.cpp | |
parent | 968a0ee9d98549308e3e70e787e4fd669d2a829d (diff) |
Switch the ID numbers used for submodule IDs in the AST reader over to
a standard global/local scheme, so that submodule definitions will
eventually be able to refer to submodules in other top-level
modules. We'll need this functionality soonish.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/Module.cpp')
-rw-r--r-- | lib/Serialization/Module.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Serialization/Module.cpp b/lib/Serialization/Module.cpp index 241b6ba88c..11e7243cd5 100644 --- a/lib/Serialization/Module.cpp +++ b/lib/Serialization/Module.cpp @@ -30,7 +30,7 @@ ModuleFile::ModuleFile(ModuleKind Kind) PreprocessedEntityOffsets(0), NumPreprocessedEntities(0), LocalNumHeaderFileInfos(0), HeaderFileInfoTableData(0), HeaderFileInfoTable(0), - HeaderFileFrameworkStrings(0), + HeaderFileFrameworkStrings(0), LocalNumSubmodules(0), LocalNumSelectors(0), SelectorOffsets(0), BaseSelectorID(0), SelectorLookupTableData(0), SelectorLookupTable(0), LocalNumDecls(0), DeclOffsets(0), BaseDeclID(0), @@ -88,7 +88,11 @@ void ModuleFile::dump() { llvm::errs() << " Base identifier ID: " << BaseIdentifierID << '\n' << " Number of identifiers: " << LocalNumIdentifiers << '\n'; dumpLocalRemap("Identifier ID local -> global map", IdentifierRemap); - + + llvm::errs() << " Base submodule ID: " << BaseSubmoduleID << '\n' + << " Number of submodules: " << LocalNumSubmodules << '\n'; + dumpLocalRemap("Submodule ID local -> global map", SubmoduleRemap); + llvm::errs() << " Base selector ID: " << BaseSelectorID << '\n' << " Number of selectors: " << LocalNumSelectors << '\n'; dumpLocalRemap("Selector ID local -> global map", SelectorRemap); |