diff options
author | Steve Naroff <snaroff@apple.com> | 2009-07-18 15:33:26 +0000 |
---|---|---|
committer | Steve Naroff <snaroff@apple.com> | 2009-07-18 15:33:26 +0000 |
commit | c15cb2af27514ecc879daba9aa01389c5203685d (patch) | |
tree | 072dd33eca9d2903660f969e2cfcf5a5509d1da4 /lib/Frontend/RewriteObjC.cpp | |
parent | fb89cf05d388c789a07c74005ac473a4f952c069 (diff) |
Remove ObjCQualifiedInterfaceType:-)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76321 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/RewriteObjC.cpp')
-rw-r--r-- | lib/Frontend/RewriteObjC.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Frontend/RewriteObjC.cpp b/lib/Frontend/RewriteObjC.cpp index 1bc7451a17..fa1476a690 100644 --- a/lib/Frontend/RewriteObjC.cpp +++ b/lib/Frontend/RewriteObjC.cpp @@ -1820,16 +1820,7 @@ static void scanToNextArgument(const char *&argRef) { } bool RewriteObjC::needToScanForQualifiers(QualType T) { - - if (T->isObjCQualifiedIdType()) - return true; - - if (const PointerType *pType = T->getAsPointerType()) { - Type *pointeeType = pType->getPointeeType().getTypePtr(); - if (isa<ObjCQualifiedInterfaceType>(pointeeType)) - return true; // we have "Class <Protocol> *". - } - return false; + return T->isObjCQualifiedIdType() || T->isObjCQualifiedInterfaceType(); } void RewriteObjC::RewriteObjCQualifiedInterfaceTypes(Expr *E) { |