diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-15 18:40:05 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-15 18:40:05 +0000 |
commit | c44d91c446f6d59722da53dba9d686560e81b762 (patch) | |
tree | 6ad53dc79d66f61cf56eae7b389ea51993adc2e6 /include/clang | |
parent | be570121a6da523020c3b11eb15aba97becb5d2f (diff) |
Eradicate IsSuper field from ObjCImplicitSetterGetterRefExprClass
AST node. (finishing off radar 8525788).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/AST/ExprObjC.h | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/include/clang/AST/ExprObjC.h b/include/clang/AST/ExprObjC.h index 407a64938b..edcbe3d6ca 100644 --- a/include/clang/AST/ExprObjC.h +++ b/include/clang/AST/ExprObjC.h @@ -336,10 +336,6 @@ class ObjCImplicitSetterGetterRefExpr : public Expr { /// the type associated with 'super' keyword. QualType SuperTy; - /// \brief When the receiver in dot-syntax expression is 'super', this is - /// set to true. - bool IsSuper:1; - public: ObjCImplicitSetterGetterRefExpr(ObjCMethodDecl *getter, QualType t, @@ -348,9 +344,7 @@ public: : Expr(ObjCImplicitSetterGetterRefExprClass, t, /*TypeDependent=*/false, base->isValueDependent()), Setter(setter), Getter(getter), MemberLoc(l), Base(base), - InterfaceDecl(0), ClassLoc(SourceLocation()) { - IsSuper = false; - } + InterfaceDecl(0), ClassLoc(SourceLocation()) {} ObjCImplicitSetterGetterRefExpr(ObjCMethodDecl *getter, QualType t, @@ -361,8 +355,8 @@ public: : Expr(ObjCImplicitSetterGetterRefExprClass, t, /*TypeDependent=*/false, false), Setter(setter), Getter(getter), MemberLoc(l), - InterfaceDecl(0), ClassLoc(SourceLocation()), - SuperLoc(sl), SuperTy(st), IsSuper(true) { + Base(0), InterfaceDecl(0), ClassLoc(SourceLocation()), + SuperLoc(sl), SuperTy(st) { } ObjCImplicitSetterGetterRefExpr(ObjCMethodDecl *getter, @@ -371,9 +365,7 @@ public: SourceLocation l, ObjCInterfaceDecl *C, SourceLocation CL) : Expr(ObjCImplicitSetterGetterRefExprClass, t, false, false), Setter(setter), Getter(getter), MemberLoc(l), Base(0), InterfaceDecl(C), - ClassLoc(CL) { - IsSuper = false; - } + ClassLoc(CL) {} explicit ObjCImplicitSetterGetterRefExpr(EmptyShell Empty) : Expr(ObjCImplicitSetterGetterRefExprClass, Empty){} @@ -402,7 +394,9 @@ public: SourceLocation getSuperLocation() const { return SuperLoc; } QualType getSuperType() const { return SuperTy; } - bool isSuperReceiver() const { return IsSuper; } + /// \brief When the receiver in dot-syntax expression is 'super', this + /// method returns true if both Base expression and Interface are null. + bool isSuperReceiver() const { return InterfaceDecl == 0 && Base == 0; } static bool classof(const Stmt *T) { return T->getStmtClass() == ObjCImplicitSetterGetterRefExprClass; @@ -417,7 +411,6 @@ private: friend class ASTStmtReader; void setSuperLocation(SourceLocation Loc) { SuperLoc = Loc; } void setSuperType(QualType T) { SuperTy = T; } - void setSuperReceiver(bool bv) { IsSuper = bv; } }; /// \brief An expression that sends a message to the given Objective-C |