[cfe-commits] r76296 - /cfe/trunk/lib/Index/ResolveLocation.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Sat Jul 18 01:49:56 PDT 2009
Author: akirtzidis
Date: Sat Jul 18 03:49:56 2009
New Revision: 76296
URL: http://llvm.org/viewvc/llvm-project?rev=76296&view=rev
Log:
Remove StmtLocResolver::VisitObjCIvarRefExpr, it was only there to avoid returning an implicit 'self' instead of the ivar.
Since implicit 'self' no longer has a source location, it's not needed. (plus we also want to check for a 'self' that is visible in source code)
Modified:
cfe/trunk/lib/Index/ResolveLocation.cpp
Modified: cfe/trunk/lib/Index/ResolveLocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Index/ResolveLocation.cpp?rev=76296&r1=76295&r2=76296&view=diff
==============================================================================
--- cfe/trunk/lib/Index/ResolveLocation.cpp (original)
+++ cfe/trunk/lib/Index/ResolveLocation.cpp Sat Jul 18 03:49:56 2009
@@ -79,7 +79,6 @@
: LocResolverBase(ctx, loc), Parent(parent) {}
ASTLocation VisitDeclStmt(DeclStmt *Node);
- ASTLocation VisitObjCIvarRefExpr(ObjCIvarRefExpr *Node);
ASTLocation VisitStmt(Stmt *Node);
};
@@ -119,12 +118,6 @@
return ASTLocation(Parent, Node);
}
-ASTLocation StmtLocResolver::VisitObjCIvarRefExpr(ObjCIvarRefExpr *Node) {
- assert(ContainsLocation(Node) &&
- "Should visit only after verifying that loc is in range");
- return ASTLocation(Parent, Node);
-}
-
ASTLocation StmtLocResolver::VisitStmt(Stmt *Node) {
assert(ContainsLocation(Node) &&
"Should visit only after verifying that loc is in range");
More information about the cfe-commits
mailing list