diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-18 08:49:56 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-18 08:49:56 +0000 |
commit | 194a9d8e73b2535fa0adcab576f32db5266af72b (patch) | |
tree | 92811daabe10587a79781f6d0c9d3257e1f75a7b /clang/lib/Index/ResolveLocation.cpp | |
parent | e1a8c62ce71bd0cc9fd4949e860ce0bba8766905 (diff) | |
download | bcm5719-llvm-194a9d8e73b2535fa0adcab576f32db5266af72b.tar.gz bcm5719-llvm-194a9d8e73b2535fa0adcab576f32db5266af72b.zip |
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)
llvm-svn: 76296
Diffstat (limited to 'clang/lib/Index/ResolveLocation.cpp')
-rw-r--r-- | clang/lib/Index/ResolveLocation.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Index/ResolveLocation.cpp b/clang/lib/Index/ResolveLocation.cpp index 72781c324c7..ba8134fb888 100644 --- a/clang/lib/Index/ResolveLocation.cpp +++ b/clang/lib/Index/ResolveLocation.cpp @@ -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"); |