summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/ProgramImpl.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-29 23:40:21 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-29 23:40:21 +0000
commitca8a0e24cb8edd0c5567dc9a984c1033a4bc9d09 (patch)
tree11b92c643357c6088216e6bd973ecbdc13d0b3eb /clang/lib/Index/ProgramImpl.h
parent91d3df0b53be36dfaeaf46521c430420a8b9646c (diff)
downloadbcm5719-llvm-ca8a0e24cb8edd0c5567dc9a984c1033a4bc9d09.tar.gz
bcm5719-llvm-ca8a0e24cb8edd0c5567dc9a984c1033a4bc9d09.zip
Use an IdentifierTable for names used for Entities.
llvm-svn: 77537
Diffstat (limited to 'clang/lib/Index/ProgramImpl.h')
-rw-r--r--clang/lib/Index/ProgramImpl.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/lib/Index/ProgramImpl.h b/clang/lib/Index/ProgramImpl.h
index 39fc184677d..b962a2d3275 100644
--- a/clang/lib/Index/ProgramImpl.h
+++ b/clang/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);
OpenPOWER on IntegriCloud