diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-03 17:25:55 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-03-03 17:25:55 +0000 |
commit | f04be1fb3a9f4b8a7591824d6985556ac578e3cf (patch) | |
tree | 67c831ea44725cbc04fa0a14fbebea1f1f7aea56 /clang/test/CodeGenCXX/debug-info-enum.cpp | |
parent | e274180f0efb5ff3358cf6076846b4cb326b2ed7 (diff) | |
download | bcm5719-llvm-f04be1fb3a9f4b8a7591824d6985556ac578e3cf.tar.gz bcm5719-llvm-f04be1fb3a9f4b8a7591824d6985556ac578e3cf.zip |
DebugInfo: Move new hierarchy into place (clang)
Update testcases for LLVM change in r231082 to use the new debug info
hierarchy.
llvm-svn: 231083
Diffstat (limited to 'clang/test/CodeGenCXX/debug-info-enum.cpp')
-rw-r--r-- | clang/test/CodeGenCXX/debug-info-enum.cpp | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/clang/test/CodeGenCXX/debug-info-enum.cpp b/clang/test/CodeGenCXX/debug-info-enum.cpp index 954f6f62e49..4ba832870d1 100644 --- a/clang/test/CodeGenCXX/debug-info-enum.cpp +++ b/clang/test/CodeGenCXX/debug-info-enum.cpp @@ -1,13 +1,17 @@ // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -g %s -o - | FileCheck %s -// CHECK: !"0x11\00{{.*}}", {{[^,]*}}, [[ENUMS:![0-9]*]], {{.*}}} ; [ DW_TAG_compile_unit ] +// CHECK: !MDCompileUnit( +// CHECK-SAME: enums: [[ENUMS:![0-9]*]] // CHECK: [[ENUMS]] = !{[[E1:![0-9]*]], [[E2:![0-9]*]], [[E3:![0-9]*]]} namespace test1 { -// CHECK: [[E1]] = !{!"0x4\00{{.*}}", {{[^,]*}}, [[TEST1:![0-9]*]], {{.*}}, [[TEST1_ENUMS:![0-9]*]], null, null, !"_ZTSN5test11eE"} ; [ DW_TAG_enumeration_type ] [e] -// CHECK: [[TEST1]] = {{.*}} ; [ DW_TAG_namespace ] [test1] +// CHECK: [[E1]] = !MDCompositeType(tag: DW_TAG_enumeration_type, name: "e" +// CHECK-SAME: scope: [[TEST1:![0-9]*]] +// CHECK-SAME: elements: [[TEST1_ENUMS:![0-9]*]] +// CHECK-SAME: identifier: "_ZTSN5test11eE" +// CHECK: [[TEST1]] = !MDNamespace(name: "test1" // CHECK: [[TEST1_ENUMS]] = !{[[TEST1_E:![0-9]*]]} -// CHECK: [[TEST1_E]] = !{!"0x28\00E\000"} ; [ DW_TAG_enumerator ] [E :: 0] +// CHECK: [[TEST1_E]] = !MDEnumerator(name: "E", value: 0) enum e { E }; void foo() { int v = E; @@ -16,8 +20,11 @@ void foo() { namespace test2 { // rdar://8195980 -// CHECK: [[E2]] = !{!"0x4\00{{.*}}", {{[^,]*}}, [[TEST2:![0-9]*]], {{.*}}, [[TEST1_ENUMS]], null, null, !"_ZTSN5test21eE"} ; [ DW_TAG_enumeration_type ] [e] -// CHECK: [[TEST2]] = {{.*}} ; [ DW_TAG_namespace ] [test2] +// CHECK: [[E2]] = !MDCompositeType(tag: DW_TAG_enumeration_type, name: "e" +// CHECK-SAME: scope: [[TEST2:![0-9]+]] +// CHECK-SAME: elements: [[TEST1_ENUMS]] +// CHECK-SAME: identifier: "_ZTSN5test21eE" +// CHECK: [[TEST2]] = !MDNamespace(name: "test2" enum e { E }; bool func(int i) { return i == E; @@ -25,10 +32,13 @@ bool func(int i) { } namespace test3 { -// CHECK: [[E3]] = !{!"0x4\00{{.*}}", {{[^,]*}}, [[TEST3:![0-9]*]], {{.*}}, [[TEST3_ENUMS:![0-9]*]], null, null, !"_ZTSN5test31eE"} ; [ DW_TAG_enumeration_type ] [e] -// CHECK: [[TEST3]] = {{.*}} ; [ DW_TAG_namespace ] [test3] +// CHECK: [[E3]] = !MDCompositeType(tag: DW_TAG_enumeration_type, name: "e" +// CHECK-SAME: scope: [[TEST3:![0-9]*]] +// CHECK-SAME: elements: [[TEST3_ENUMS:![0-9]*]] +// CHECK-SAME: identifier: "_ZTSN5test31eE" +// CHECK: [[TEST3]] = !MDNamespace(name: "test3" // CHECK: [[TEST3_ENUMS]] = !{[[TEST3_E:![0-9]*]]} -// CHECK: [[TEST3_E]] = !{!"0x28\00E\00-1"} ; [ DW_TAG_enumerator ] [E :: -1] +// CHECK: [[TEST3_E]] = !MDEnumerator(name: "E", value: -1) enum e { E = -1 }; void func() { e x; |