summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclObjC.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-20 00:37:55 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-20 00:37:55 +0000
commit5d5dbb17540f2ba79381e628e1e4e7ae70c4b0ea (patch)
tree7b6a145bed62a0f614e0485028e7cce5aef3ef6f /clang/lib/AST/DeclObjC.cpp
parentae03226bc6ec06927cbd91f59817d09876a8f301 (diff)
downloadbcm5719-llvm-5d5dbb17540f2ba79381e628e1e4e7ae70c4b0ea.tar.gz
bcm5719-llvm-5d5dbb17540f2ba79381e628e1e4e7ae70c4b0ea.zip
Remove non-const form of lookupFieldDeclForIvar.
llvm-svn: 69563
Diffstat (limited to 'clang/lib/AST/DeclObjC.cpp')
-rw-r--r--clang/lib/AST/DeclObjC.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/lib/AST/DeclObjC.cpp b/clang/lib/AST/DeclObjC.cpp
index 4bc7cd461cb..4a3c4d4f30e 100644
--- a/clang/lib/AST/DeclObjC.cpp
+++ b/clang/lib/AST/DeclObjC.cpp
@@ -375,11 +375,12 @@ ObjCInterfaceDecl::FindCategoryDeclaration(IdentifierInfo *CategoryId) const {
return 0;
}
-/// lookupFieldDeclForIvar - looks up a field decl' in the laid out
+/// lookupFieldDeclForIvar - looks up a field decl in the laid out
/// storage which matches this 'ivar'.
///
-FieldDecl *ObjCInterfaceDecl::lookupFieldDeclForIvar(ASTContext &Context,
- const ObjCIvarDecl *IVar) {
+const FieldDecl *
+ObjCInterfaceDecl::lookupFieldDeclForIvar(ASTContext &Context,
+ const ObjCIvarDecl *IVar) const {
const RecordDecl *RecordForDecl = Context.addRecordToClass(this);
assert(RecordForDecl && "lookupFieldDeclForIvar no storage for class");
DeclContext::lookup_const_result Lookup =
OpenPOWER on IntegriCloud