aboutsummaryrefslogtreecommitdiff
path: root/lib/Index/EntityImpl.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
commitdc1792c78ac40a05c3ab00d4da5574ba03f19769 (patch)
treefd1f552cf9c6590a559ebc57a66c86cc2711611f /lib/Index/EntityImpl.h
parent7f4656eb6b60a7f3596fb26b9d5aed3731b3109e (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/EntityImpl.h')
-rw-r--r--lib/Index/EntityImpl.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/Index/EntityImpl.h b/lib/Index/EntityImpl.h
index 3f09f80fc1..d28936ee2c 100644
--- a/lib/Index/EntityImpl.h
+++ b/lib/Index/EntityImpl.h
@@ -19,23 +19,20 @@
#include "llvm/ADT/StringSet.h"
namespace clang {
+ class IdentifierInfo;
namespace idx {
class ProgramImpl;
class EntityImpl : public llvm::FoldingSetNode {
-public:
- typedef llvm::StringMapEntry<char> IdEntryTy;
-
-private:
Entity Parent;
- IdEntryTy *Id;
+ IdentifierInfo *Id;
/// \brief Identifier namespace.
unsigned IdNS;
public:
- EntityImpl(Entity parent, IdEntryTy *id, unsigned idNS)
+ EntityImpl(Entity parent, IdentifierInfo *id, unsigned idNS)
: Parent(parent), Id(id), IdNS(idNS) { }
/// \brief Find the Decl that can be referred to by this entity.
@@ -50,8 +47,8 @@ public:
void Profile(llvm::FoldingSetNodeID &ID) const {
Profile(ID, Parent, Id, IdNS);
}
- static void Profile(llvm::FoldingSetNodeID &ID, Entity Parent, IdEntryTy *Id,
- unsigned IdNS) {
+ static void Profile(llvm::FoldingSetNodeID &ID, Entity Parent,
+ IdentifierInfo *Id, unsigned IdNS) {
ID.AddPointer(Parent.getAsOpaquePtr());
ID.AddPointer(Id);
ID.AddInteger(IdNS);