summaryrefslogtreecommitdiffstats
path: root/clang/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
commit40d009ff0cf336565a6fc86de120366133e1850d (patch)
treea47d972fb57e25fd8a237d47c45a67e51412352c /clang/tools/libclang/IndexingContext.cpp
parent4a814568b2aaaa2cf83ca01ed404890d65f4c1a6 (diff)
downloadbcm5719-llvm-40d009ff0cf336565a6fc86de120366133e1850d.tar.gz
bcm5719-llvm-40d009ff0cf336565a6fc86de120366133e1850d.zip
Eliminate the vistigial ObjCClassDecl::ObjCClassRef, and inline its
members into ObjCClassDecl, saving ourselves one pointer per forward declaration. llvm-svn: 146564
Diffstat (limited to 'clang/tools/libclang/IndexingContext.cpp')
-rw-r--r--clang/tools/libclang/IndexingContext.cpp5
1 files changed, 2 insertions, 3 deletions
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.
OpenPOWER on IntegriCloud