summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2012-02-20 20:09:20 +0000
committerFariborz Jahanian <fjahanian@apple.com>2012-02-20 20:09:20 +0000
commita7765fea90294017b18b6a39cdc1a3531258d8c6 (patch)
tree45e92104c1588297229aa1b2fe11b37cca2b3a33 /clang/lib/Sema/SemaDecl.cpp
parentd5c4844e02a3df00f40bf51eae9bd03da7ed4fa2 (diff)
downloadbcm5719-llvm-a7765fea90294017b18b6a39cdc1a3531258d8c6.tar.gz
bcm5719-llvm-a7765fea90294017b18b6a39cdc1a3531258d8c6.zip
modern objc translator. Finish off first cut of the
modern meta-data translation by commenting out private ivar declarations in user source. Also, added several tests. llvm-svn: 150985
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 6c54424c976..94d8f62ba6d 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -9585,6 +9585,8 @@ void Sema::ActOnFields(Scope* S,
// Only it is in implementation's lexical context.
ClsFields[I]->setLexicalDeclContext(IMPDecl);
CheckImplementationIvars(IMPDecl, ClsFields, RecFields.size(), RBrac);
+ IMPDecl->setIvarLBraceLoc(LBrac);
+ IMPDecl->setIvarRBraceLoc(RBrac);
} else if (ObjCCategoryDecl *CDecl =
dyn_cast<ObjCCategoryDecl>(EnclosingDecl)) {
// case of ivars in class extension; all other cases have been
@@ -9618,6 +9620,8 @@ void Sema::ActOnFields(Scope* S,
ClsFields[i]->setLexicalDeclContext(CDecl);
CDecl->addDecl(ClsFields[i]);
}
+ CDecl->setIvarLBraceLoc(LBrac);
+ CDecl->setIvarRBraceLoc(RBrac);
}
}
OpenPOWER on IntegriCloud