diff options
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r-- | clang/lib/AST/ASTContext.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index 281b2cd5de2..95f95ceb5e4 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -540,6 +540,16 @@ const RecordDecl *ASTContext::addRecordToClass(const ObjCInterfaceDecl *D) return RD; } +/// setFieldDecl - maps a field for the given Ivar reference node. +// +void ASTContext::setFieldDecl(const ObjCInterfaceDecl *OI, + const ObjCIvarDecl *Ivar, + const ObjCIvarRefExpr *MRef) { + FieldDecl *FD = (const_cast<ObjCInterfaceDecl *>(OI))-> + lookupFieldDeclForIvar(*this, Ivar); + ASTFieldForIvarRef[MRef] = FD; +} + /// getASTObjcInterfaceLayout - Get or compute information about the layout of /// the specified Objective C, which indicates its size and ivar /// position information. |