Indexer: make FieldDecl an internal Entity.

llvm-svn: 107604
This commit is contained in:
Zhongxing Xu 2010-07-05 01:44:14 +00:00
parent e6b999bf9a
commit 5776d439ca
1 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public:
Entity VisitNamedDecl(NamedDecl *D);
Entity VisitVarDecl(VarDecl *D);
Entity VisitFieldDecl(FieldDecl *D);
Entity VisitFunctionDecl(FunctionDecl *D);
};
@ -124,6 +125,11 @@ Entity EntityGetter::VisitFunctionDecl(FunctionDecl *D) {
return VisitNamedDecl(D);
}
Entity EntityGetter::VisitFieldDecl(FieldDecl *D) {
// Make FieldDecl an internal Entity.
return Entity(D);
}
//===----------------------------------------------------------------------===//
// EntityImpl Implementation
//===----------------------------------------------------------------------===//