diff options
author | Jonathan D. Turner <jonathan.d.turner@gmail.com> | 2011-07-29 18:09:09 +0000 |
---|---|---|
committer | Jonathan D. Turner <jonathan.d.turner@gmail.com> | 2011-07-29 18:09:09 +0000 |
commit | 2e09163890b51aa8766564780154531451a3cf0b (patch) | |
tree | e811ccbb5d63ef04aca132a5dbe627bd5a3b3d37 /include | |
parent | d16aa4139b8e6d08c0166945ab24ce340055465c (diff) |
Renamed Loaded member to ImportedBy, as it's easier to read. Added another set to represent the modules a module imports.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@136476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Serialization/ASTReader.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index 1d6c536f28..bcf5384bc6 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/include/clang/Serialization/ASTReader.h @@ -32,6 +32,7 @@ #include "llvm/ADT/APInt.h" #include "llvm/ADT/APSInt.h" #include "llvm/ADT/OwningPtr.h" +#include "llvm/ADT/SetVector.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/Bitcode/BitstreamReader.h" @@ -397,9 +398,11 @@ public: /// preprocessing record. unsigned NumPreallocatedPreprocessingEntities; - /// \brief All the modules that loaded this one. Can contain NULL for - /// directly loaded modules. - SmallVector<Module *, 1> Loaders; + /// \brief List of modules which depend on this module + llvm::SetVector<Module *> ImportedBy; + + /// \brief List of modules which this module depends on + llvm::SetVector<Module *> Imports; }; /// \brief The manager for modules loaded by the ASTReader. |