summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2009-06-17 22:40:22 +0000
committerSteve Naroff <snaroff@apple.com>2009-06-17 22:40:22 +0000
commitfb4330f255e5db564855ffbc0a34b335ff930a0f (patch)
tree05ec85921e8c01de6029e963468459a66c1e03f5 /clang/lib/Sema/Sema.cpp
parentb35e2caab5a9c62ec4ce7f6660766ef4b9670551 (diff)
downloadbcm5719-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/Sema/Sema.cpp')
-rw-r--r--clang/lib/Sema/Sema.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.cpp b/clang/lib/Sema/Sema.cpp
index 254080a81a8..60d8e5f987b 100644
--- a/clang/lib/Sema/Sema.cpp
+++ b/clang/lib/Sema/Sema.cpp
@@ -164,7 +164,7 @@ void Sema::ActOnTranslationUnitScope(SourceLocation Loc, Scope *S) {
// Synthesize "typedef struct objc_object { Class isa; } *id;"
if (Context.getObjCIdType().isNull()) {
RecordDecl *ObjectTag = CreateStructDecl(Context, "objc_object");
-
+
QualType ObjT = Context.getPointerType(Context.getTagDeclType(ObjectTag));
PushOnScopeChains(ObjectTag, TUScope);
TypedefDecl *IdTypedef = TypedefDecl::Create(Context, CurContext,
OpenPOWER on IntegriCloud