aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Serialization/Module.h
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2013-01-21 20:07:12 +0000
committerDouglas Gregor <dgregor@apple.com>2013-01-21 20:07:12 +0000
commitcc71dbee441e97285e86bff48eecfbeab82de7ce (patch)
tree25e66d611d2f0a0c6fc6428e5c7adeb33449c585 /include/clang/Serialization/Module.h
parentb892d7010f9c2c61e2f3a2686546cbfbffbedef3 (diff)
Give ModuleFiles an index, so that we can use indexed vectors rather
than DenseMaps and SmallPtrSets for module-visitation data. ~2.6% speedup for modules. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Serialization/Module.h')
-rw-r--r--include/clang/Serialization/Module.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Serialization/Module.h b/include/clang/Serialization/Module.h
index 329756e009..547bf4c921 100644
--- a/include/clang/Serialization/Module.h
+++ b/include/clang/Serialization/Module.h
@@ -69,6 +69,9 @@ public:
// === General information ===
+ /// \brief The index of this module in the list of modules.
+ unsigned Index;
+
/// \brief The type of this module.
ModuleKind Kind;