diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:40:21 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-29 23:40:21 +0000 |
commit | dc1792c78ac40a05c3ab00d4da5574ba03f19769 (patch) | |
tree | fd1f552cf9c6590a559ebc57a66c86cc2711611f /lib/Index/ProgramImpl.h | |
parent | 7f4656eb6b60a7f3596fb26b9d5aed3731b3109e (diff) |
Use an IdentifierTable for names used for Entities.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/ProgramImpl.h')
-rw-r--r-- | lib/Index/ProgramImpl.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Index/ProgramImpl.h b/lib/Index/ProgramImpl.h index 39fc184677..b962a2d327 100644 --- a/lib/Index/ProgramImpl.h +++ b/lib/Index/ProgramImpl.h @@ -15,6 +15,8 @@ #define LLVM_CLANG_INDEX_PROGRAMIMPL_H #include "EntityImpl.h" +#include "clang/Basic/IdentifierTable.h" +#include "clang/Basic/LangOptions.h" namespace clang { @@ -27,17 +29,18 @@ public: private: EntitySetTy Entities; - llvm::StringSet<> Idents; llvm::BumpPtrAllocator BumpAlloc; + + IdentifierTable Identifiers; ProgramImpl(const ProgramImpl&); // do not implement ProgramImpl &operator=(const ProgramImpl &); // do not implement public: - ProgramImpl() { } + ProgramImpl() : Identifiers(LangOptions()) { } EntitySetTy &getEntities() { return Entities; } - llvm::StringSet<> &getIdents() { return Idents; } + IdentifierTable &getIdents() { return Identifiers; } void *Allocate(unsigned Size, unsigned Align = 8) { return BumpAlloc.Allocate(Size, Align); |