From 383f8413cf901c8ea026318b4f95ab00107fd38c Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Sat, 23 Apr 2016 21:08:27 +0000 Subject: DebugInfo: Adapt to loss of DITypeRef in LLVM r267296 LLVM stopped using MDString-based type references, and DIBuilder no longer fills 'retainedTypes:' with every DICompositeType that has an 'identifier:' field. There are just minor changes to keep the same behaviour in CFE. Leaving 'retainedTypes:' unfilled has a dramatic impact on the output order of the IR though. There are a huge number of testcase changes, which were unfortunately not really scriptable. llvm-svn: 267297 --- clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp') diff --git a/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp b/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp index 19f8d01e1ab..70b233cac4d 100644 --- a/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp +++ b/clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp @@ -9,9 +9,10 @@ struct Bar { int i1; // CHECK: ![[INT:[0-9]+]] = !DIBasicType(name: "int" // CHECK: !DIDerivedType(tag: DW_TAG_member, scope: - // CHECK-SAME: line: [[@LINE+3]] - // CHECK-SAME: baseType: !"_ZTSN3BarUt_E" + // CHECK-SAME: line: [[@LINE+4]] + // CHECK-SAME: baseType: ![[UNION:[0-9]+]] // CHECK-SAME: size: 32, align: 32, offset: 32 + // CHECK: ![[UNION]] = distinct !DICompositeType(tag: DW_TAG_union_type,{{.*}} identifier: "_ZTSN3BarUt_E") union { // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "i2", // CHECK-SAME: line: [[@LINE+5]] -- cgit v1.2.3