From 40d009ff0cf336565a6fc86de120366133e1850d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 14 Dec 2011 17:12:03 +0000 Subject: Eliminate the vistigial ObjCClassDecl::ObjCClassRef, and inline its members into ObjCClassDecl, saving ourselves one pointer per forward declaration. llvm-svn: 146564 --- clang/tools/libclang/IndexingContext.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/tools/libclang/IndexingContext.cpp') diff --git a/clang/tools/libclang/IndexingContext.cpp b/clang/tools/libclang/IndexingContext.cpp index 812669397d4..a2480ba092c 100644 --- a/clang/tools/libclang/IndexingContext.cpp +++ b/clang/tools/libclang/IndexingContext.cpp @@ -300,9 +300,8 @@ bool IndexingContext::handleTypedefName(const TypedefNameDecl *D) { } bool IndexingContext::handleObjCClass(const ObjCClassDecl *D) { - const ObjCClassDecl::ObjCClassRef *Ref = D->getForwardDecl(); - ObjCInterfaceDecl *IFaceD = Ref->getInterface(); - SourceLocation Loc = Ref->getLocation(); + ObjCInterfaceDecl *IFaceD = D->getForwardInterfaceDecl(); + SourceLocation Loc = D->getNameLoc(); bool isRedeclaration = IFaceD->getLocation() != Loc; // For @class forward declarations, suppress them the same way as references. -- cgit v1.2.3