diff options
author | Devang Patel <dpatel@apple.com> | 2012-02-04 01:15:04 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2012-02-04 01:15:04 +0000 |
commit | a21bbb24237c5672eb42ff3a07d4b18760992ecb (patch) | |
tree | 8719a74c54cd73648010d58a01e6fd69eb291e5f /clang | |
parent | fcf8d1f82a6fe0b3ee03397116c523604188b7ea (diff) | |
download | bcm5719-llvm-a21bbb24237c5672eb42ff3a07d4b18760992ecb.tar.gz bcm5719-llvm-a21bbb24237c5672eb42ff3a07d4b18760992ecb.zip |
Create new tag for the property. This is a work in progress.
llvm-svn: 149734
Diffstat (limited to 'clang')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 97cf26673df..9f9d5c4b494 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -1353,6 +1353,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, StringRef PropertySetter; unsigned PropertyAttributes = 0; ObjCPropertyDecl *PD = NULL; + llvm::MDNode *PropertyNode = NULL; if (ImpD) if (ObjCPropertyImplDecl *PImpD = ImpD->FindPropertyImplIvarDecl(Field->getIdentifier())) @@ -1362,7 +1363,12 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, PropertyGetter = getSelectorName(PD->getGetterName()); PropertySetter = getSelectorName(PD->getSetterName()); PropertyAttributes = PD->getPropertyAttributes(); - } + PropertyNode = + DBuilder.createObjCProperty(PropertyName, PropertyGetter, + PropertySetter, + PropertyAttributes); + EltTys.push_back(PropertyNode); + } FieldTy = DBuilder.createObjCIVar(FieldName, FieldDefUnit, FieldLine, FieldSize, FieldAlign, FieldOffset, Flags, FieldTy, |