diff options
| author | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-01 00:01:53 +0000 |
|---|---|---|
| committer | Fariborz Jahanian <fjahanian@apple.com> | 2010-10-01 00:01:53 +0000 |
| commit | 885e9dff936f7dd3d27ff4a4866314cebdc9044a (patch) | |
| tree | 1058bbfbcb40000d40f328e8c8d5d7e3660ec483 /clang/lib/CodeGen/CGDebugInfo.cpp | |
| parent | 1664634cbb6dc1be902c4b7352cff98098c94a64 (diff) | |
| download | bcm5719-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.cpp | 5 |
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(); |

