summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2008-12-18 17:29:46 +0000
committerFariborz Jahanian <fjahanian@apple.com>2008-12-18 17:29:46 +0000
commitf8f0c6b1bcf04f2a959e3afb8ef628d990716b50 (patch)
treeb5223763f3491120b882a0d1e0832aff85129e18 /clang/lib/AST/ASTContext.cpp
parentd96f7cca5f7874046047a3c3884ad84e31eb6e3a (diff)
downloadbcm5719-llvm-f8f0c6b1bcf04f2a959e3afb8ef628d990716b50.tar.gz
bcm5719-llvm-f8f0c6b1bcf04f2a959e3afb8ef628d990716b50.zip
Removed a slot in ObjCMemRegExpr used in
code gen which did not belong there. llvm-svn: 61203
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp10
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.
OpenPOWER on IntegriCloud