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 /include/clang/Serialization/Module.h | |
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 'include/clang/Serialization/Module.h')
-rw-r--r-- | include/clang/Serialization/Module.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/clang/Serialization/Module.h b/include/clang/Serialization/Module.h index 8874679eea..16d9779e04 100644 --- a/include/clang/Serialization/Module.h +++ b/include/clang/Serialization/Module.h @@ -201,8 +201,15 @@ public: /// search information. const char *HeaderFileFrameworkStrings; - // === Submodule information === - llvm::SmallVector<Module *, 2> Submodules; + // === Submodule information === + /// \brief The number of submodules in this module. + unsigned LocalNumSubmodules; + + /// \brief Base submodule ID for submodules local to this module. + serialization::SubmoduleID BaseSubmoduleID; + + /// \brief Remapping table for submodule IDs in this module. + ContinuousRangeMap<uint32_t, int, 2> SubmoduleRemap; // === Selectors === |