diff options
| author | Steve Naroff <snaroff@apple.com> | 2009-06-17 22:40:22 +0000 |
|---|---|---|
| committer | Steve Naroff <snaroff@apple.com> | 2009-06-17 22:40:22 +0000 |
| commit | fb4330f255e5db564855ffbc0a34b335ff930a0f (patch) | |
| tree | 05ec85921e8c01de6029e963468459a66c1e03f5 /clang/lib/Frontend/RewriteBlocks.cpp | |
| parent | b35e2caab5a9c62ec4ce7f6660766ef4b9670551 (diff) | |
| download | bcm5719-llvm-fb4330f255e5db564855ffbc0a34b335ff930a0f.tar.gz bcm5719-llvm-fb4330f255e5db564855ffbc0a34b335ff930a0f.zip | |
First step toward fixing <rdar://problem/6613046> refactor clang objc type representation.
Add a type (ObjCObjectPointerType) and remove a type (ObjCQualifiedIdType).
This large/tedious patch is just a first step. Next step is to remove ObjCQualifiedInterfaceType. After that, I will remove the magic TypedefType for 'id' (installed by Sema). This work will enable various simplifications throughout clang (when dealing with ObjC types).
No functionality change.
llvm-svn: 73649
Diffstat (limited to 'clang/lib/Frontend/RewriteBlocks.cpp')
| -rw-r--r-- | clang/lib/Frontend/RewriteBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/RewriteBlocks.cpp b/clang/lib/Frontend/RewriteBlocks.cpp index 8393574d1e6..d20d5cd152c 100644 --- a/clang/lib/Frontend/RewriteBlocks.cpp +++ b/clang/lib/Frontend/RewriteBlocks.cpp @@ -132,7 +132,7 @@ public: if (const PointerType *PT = OCT->getAsPointerType()) { if (isa<ObjCInterfaceType>(PT->getPointeeType()) || - isa<ObjCQualifiedIdType>(PT->getPointeeType())) + PT->getPointeeType()->isObjCQualifiedIdType()) return true; } return false; |

