diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-12-14 17:12:03 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-12-14 17:12:03 +0000 |
commit | af764723bf94f8cc7596e2b2f2a97766d188ed98 (patch) | |
tree | 5709cfa021ffa4de38d3c4203811d326f39aee99 /lib/Serialization/ASTWriterDecl.cpp | |
parent | 553689148f546783e127749438bf6d7806e6bb1d (diff) |
Eliminate the vistigial ObjCClassDecl::ObjCClassRef, and inline its
members into ObjCClassDecl, saving ourselves one pointer per forward
declaration.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r-- | lib/Serialization/ASTWriterDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index 99df3ea674..1448e59fb6 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/lib/Serialization/ASTWriterDecl.cpp @@ -526,8 +526,8 @@ void ASTDeclWriter::VisitObjCAtDefsFieldDecl(ObjCAtDefsFieldDecl *D) { void ASTDeclWriter::VisitObjCClassDecl(ObjCClassDecl *D) { VisitDecl(D); - Writer.AddDeclRef(D->getForwardInterfaceDecl(), Record); - Writer.AddSourceLocation(D->getForwardDecl()->getLocation(), Record); + Writer.AddDeclRef(D->Interface, Record); + Writer.AddSourceLocation(D->InterfaceLoc, Record); Code = serialization::DECL_OBJC_CLASS; } |