summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2010-10-01 00:01:53 +0000
committerFariborz Jahanian <fjahanian@apple.com>2010-10-01 00:01:53 +0000
commit885e9dff936f7dd3d27ff4a4866314cebdc9044a (patch)
tree1058bbfbcb40000d40f328e8c8d5d7e3660ec483 /clang/lib/CodeGen/CGDebugInfo.cpp
parent1664634cbb6dc1be902c4b7352cff98098c94a64 (diff)
downloadbcm5719-llvm-885e9dff936f7dd3d27ff4a4866314cebdc9044a.tar.gz
bcm5719-llvm-885e9dff936f7dd3d27ff4a4866314cebdc9044a.zip
Output debug info. for ivars declared in class
extension and implementation. Fixes rdar://8493239. llvm-svn: 115248
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 29a4377dd13..30165961e57 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1114,9 +1114,8 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
const ASTRecordLayout &RL = CGM.getContext().getASTObjCInterfaceLayout(ID);
unsigned FieldNo = 0;
- for (ObjCInterfaceDecl::ivar_iterator I = ID->ivar_begin(),
- E = ID->ivar_end(); I != E; ++I, ++FieldNo) {
- ObjCIvarDecl *Field = *I;
+ for (ObjCIvarDecl *Field = ID->all_declared_ivar_begin(); Field;
+ Field = Field->getNextIvar()) {
llvm::DIType FieldTy = getOrCreateType(Field->getType(), Unit);
llvm::StringRef FieldName = Field->getName();
OpenPOWER on IntegriCloud