[cfe-commits] r149734 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Devang Patel
dpatel at apple.com
Fri Feb 3 17:15:04 PST 2012
Author: dpatel
Date: Fri Feb 3 19:15:04 2012
New Revision: 149734
URL: http://llvm.org/viewvc/llvm-project?rev=149734&view=rev
Log:
Create new tag for the property. This is a work in progress.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=149734&r1=149733&r2=149734&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Feb 3 19:15:04 2012
@@ -1353,6 +1353,7 @@
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 @@
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,
More information about the cfe-commits
mailing list