Fix comments: "class method" should be "instance method" and vis versa
llvm-svn: 52669
This commit is contained in:
parent
f890bfe0ff
commit
f8e0bbd6ad
|
@ -266,8 +266,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getReceiver - Returns the receiver of the message expression.
|
/// getReceiver - Returns the receiver of the message expression.
|
||||||
/// This can be NULL if the message is for instance methods. For
|
/// This can be NULL if the message is for class methods. For
|
||||||
/// instance methods, use getClassName.
|
/// class methods, use getClassName.
|
||||||
Expr *getReceiver() {
|
Expr *getReceiver() {
|
||||||
uintptr_t x = (uintptr_t) SubExprs[RECEIVER];
|
uintptr_t x = (uintptr_t) SubExprs[RECEIVER];
|
||||||
return x & 0x1 ? NULL : (Expr*) x;
|
return x & 0x1 ? NULL : (Expr*) x;
|
||||||
|
@ -281,8 +281,8 @@ public:
|
||||||
const ObjCMethodDecl *getMethodDecl() const { return MethodProto; }
|
const ObjCMethodDecl *getMethodDecl() const { return MethodProto; }
|
||||||
ObjCMethodDecl *getMethodDecl() { return MethodProto; }
|
ObjCMethodDecl *getMethodDecl() { return MethodProto; }
|
||||||
|
|
||||||
/// getClassName - For instance methods, this returns the invoked class,
|
/// getClassName - For class methods, this returns the invoked class,
|
||||||
/// and returns NULL otherwise. For regular methods, use getReceiver.
|
/// and returns NULL otherwise. For instance methods, use getReceiver.
|
||||||
IdentifierInfo *getClassName() {
|
IdentifierInfo *getClassName() {
|
||||||
uintptr_t x = (uintptr_t) SubExprs[RECEIVER];
|
uintptr_t x = (uintptr_t) SubExprs[RECEIVER];
|
||||||
return x & 0x1 ? (IdentifierInfo*) (x & ~0x1) : NULL;
|
return x & 0x1 ? (IdentifierInfo*) (x & ~0x1) : NULL;
|
||||||
|
|
Loading…
Reference in New Issue