diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-04-20 23:59:32 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-04-20 23:59:32 +0000 |
commit | 50fd1a87c4d1a5a78e0dab6f8d6ca5db7960de0e (patch) | |
tree | 0ab8d932308f2c94c175a3b4fcfcfbd5cf6097da /clang/test/Modules/ModuleDebugInfo.m | |
parent | a8bae8237321a37f2412a00a46ea8d005b82809b (diff) | |
download | bcm5719-llvm-50fd1a87c4d1a5a78e0dab6f8d6ca5db7960de0e.tar.gz bcm5719-llvm-50fd1a87c4d1a5a78e0dab6f8d6ca5db7960de0e.zip |
Module Debugging: Emit the canonical debug info for Objective-C classes
in the compile unit that contains their implementation even if their
interface is declared in a module.
The private @implementation of an @interface may have additional
hidden ivars so we should not defer to the public version of the
type that is found in the module.
<rdar://problem/25541798>
llvm-svn: 266937
Diffstat (limited to 'clang/test/Modules/ModuleDebugInfo.m')
-rw-r--r-- | clang/test/Modules/ModuleDebugInfo.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/clang/test/Modules/ModuleDebugInfo.m b/clang/test/Modules/ModuleDebugInfo.m index 360db919ab9..ce35c7c8361 100644 --- a/clang/test/Modules/ModuleDebugInfo.m +++ b/clang/test/Modules/ModuleDebugInfo.m @@ -33,13 +33,13 @@ // CHECK: ![[TD_ENUM:.*]] = !DICompositeType(tag: DW_TAG_enumeration_type, // CHECK-NOT: name: // CHECK-SAME: elements: -// CHECK-SAME: ) // CHECK: !DISubprogram(name: "+[ObjCClass classMethod]", // CHECK-SAME: scope: ![[MODULE]], // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "ObjCClass", // CHECK-SAME: scope: ![[MODULE]], +// CHECK-SAME: elements // The forward declaration should not be in the module scope. // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "OpaqueData", file @@ -47,13 +47,16 @@ // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "FwdDecl", // CHECK-SAME: scope: ![[MODULE]], +// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "ObjCClassWithPrivateIVars", +// CHECK-SAME: scope: ![[MODULE]], +// CHECK-SAME: elements + // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "FwdDeclared" // CHECK-SAME: elements: // CHECK: ![[TD_UNION:.*]] = distinct !DICompositeType(tag: DW_TAG_union_type, // CHECK-NOT: name: // CHECK-SAME: elements: -// CHECK-SAME: ) // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "TypedefUnion", // CHECK-SAME: baseType: ![[TD_UNION]]) |