From 5f3c7faa398e64a94d0757e19c69441e04819166 Mon Sep 17 00:00:00 2001 From: Devang Patel Date: Mon, 6 Feb 2012 18:20:02 +0000 Subject: [PATCH] Let an ivar directly refer property TAG. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149881 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/CGDebugInfo.cpp | 3 +-- test/CodeGenObjC/debug-info-property.m | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 0ec74cff83..addc254128 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1373,8 +1373,7 @@ llvm::DIType CGDebugInfo::CreateType(const ObjCInterfaceType *Ty, FieldTy = DBuilder.createObjCIVar(FieldName, FieldDefUnit, FieldLine, FieldSize, FieldAlign, FieldOffset, Flags, FieldTy, - PropertyName, PropertyGetter, - PropertySetter, PropertyAttributes); + PropertyNode); EltTys.push_back(FieldTy); } diff --git a/test/CodeGenObjC/debug-info-property.m b/test/CodeGenObjC/debug-info-property.m index d86b7c7a5e..6ed467a5bc 100644 --- a/test/CodeGenObjC/debug-info-property.m +++ b/test/CodeGenObjC/debug-info-property.m @@ -1,6 +1,10 @@ // RUN: %clang_cc1 -masm-verbose -S -g %s -o - | FileCheck %s // CHECK: AT_APPLE_property_name +// CHECK: AT_APPLE_property_getter +// CHECK: AT_APPLE_property_setter +// CHECK: AT_APPLE_property_attribute +// CHECK: AT_APPLE_property @interface I1 { int p1; } -- 2.50.1