aboutsummaryrefslogtreecommitdiff
path: root/tools/libclang/IndexingContext.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-12-14 17:12:03 +0000
committerDouglas Gregor <dgregor@apple.com>2011-12-14 17:12:03 +0000
commitaf764723bf94f8cc7596e2b2f2a97766d188ed98 (patch)
tree5709cfa021ffa4de38d3c4203811d326f39aee99 /tools/libclang/IndexingContext.cpp
parent553689148f546783e127749438bf6d7806e6bb1d (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 'tools/libclang/IndexingContext.cpp')
-rw-r--r--tools/libclang/IndexingContext.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/libclang/IndexingContext.cpp b/tools/libclang/IndexingContext.cpp
index 812669397d..a2480ba092 100644
--- a/tools/libclang/IndexingContext.cpp
+++ b/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.