diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2008-12-18 17:29:46 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2008-12-18 17:29:46 +0000 |
commit | efc4c4bdbd8fee90b93deb3b5cfaeb044ae22557 (patch) | |
tree | ed661077147ecc42999eec82a78377928ee84ad2 /lib/AST/ASTContext.cpp | |
parent | d8df6823420c22329a2a9aacd2a440368d38d86c (diff) |
Removed a slot in ObjCMemRegExpr used in
code gen which did not belong there.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 281b2cd5de..95f95ceb5e 100644 --- a/lib/AST/ASTContext.cpp +++ b/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. |