]> granicus.if.org Git - clang/commitdiff
Remove StmtLocResolver::VisitObjCIvarRefExpr, it was only there to avoid returning...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 18 Jul 2009 08:49:56 +0000 (08:49 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sat, 18 Jul 2009 08:49:56 +0000 (08:49 +0000)
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)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76296 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Index/ResolveLocation.cpp

index 72781c324c7866003aa85ac030533c9f4bed1dd4..ba8134fb888cdc4a10f447840f2fb0a879927479 100644 (file)
@@ -79,7 +79,6 @@ public:
     : LocResolverBase(ctx, loc), Parent(parent) {}
 
   ASTLocation VisitDeclStmt(DeclStmt *Node);
-  ASTLocation VisitObjCIvarRefExpr(ObjCIvarRefExpr *Node);
   ASTLocation VisitStmt(Stmt *Node);
 };
 
@@ -119,12 +118,6 @@ ASTLocation StmtLocResolver::VisitDeclStmt(DeclStmt *Node) {
   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");