aboutsummaryrefslogtreecommitdiff
path: root/lib/Index/ProgramImpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Index/ProgramImpl.h')
-rw-r--r--lib/Index/ProgramImpl.h9
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);