From: Paul Robinson Date: Tue, 8 Jan 2019 17:52:29 +0000 (+0000) Subject: Rename DIFlagFixedEnum to DIFlagEnumClass. NFC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2444c788c494a66f7183cad8dfa6208352a2f46c;p=clang Rename DIFlagFixedEnum to DIFlagEnumClass. NFC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350641 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/debug-info-enum.cpp b/test/CodeGen/debug-info-enum.cpp index 1237f28b9a..bbe66bb9fa 100644 --- a/test/CodeGen/debug-info-enum.cpp +++ b/test/CodeGen/debug-info-enum.cpp @@ -12,7 +12,7 @@ enum class E0 : signed char { } x0; // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E0" // CHECK-SAME: baseType: ![[SCHAR:[0-9]+]] -// CHECK-SAME: DIFlagFixedEnum +// CHECK-SAME: DIFlagEnumClass // CHECK-SAME: elements: ![[ELTS0:[0-9]+]] // CHECK: ![[SCHAR]] = !DIBasicType(name: "signed char", size: 8, encoding: DW_ATE_signed_char) // CHECK: ![[ELTS0]] = !{![[A0:[0-9]+]], ![[B0:[0-9]+]]} @@ -22,7 +22,7 @@ enum class E0 : signed char { enum class E1 : unsigned char { A1 = 255 } x1; // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E1" // CHECK-SAME: baseType: ![[UCHAR:[0-9]+]] -// CHECK-SAME: DIFlagFixedEnum +// CHECK-SAME: DIFlagEnumClass // CHECK-SAME: elements: ![[ELTS1:[0-9]+]] // CHECK: ![[UCHAR]] = !DIBasicType(name: "unsigned char", size: 8, encoding: DW_ATE_unsigned_char) // CHECK: ![[ELTS1]] = !{![[A1:[0-9]+]]} @@ -34,7 +34,7 @@ enum class E2 : signed short { } x2; // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E2" // CHECK-SAME: baseType: ![[SHORT:[0-9]+]] -// CHECK-SAME: DIFlagFixedEnum +// CHECK-SAME: DIFlagEnumClass // CHECK-SAME: elements: ![[ELTS2:[0-9]+]] // CHECK: ![[SHORT]] = !DIBasicType(name: "short", size: 16, encoding: DW_ATE_signed) // CHECK: ![[ELTS2]] = !{![[A2:[0-9]+]], ![[B2:[0-9]+]]} @@ -44,7 +44,7 @@ enum class E2 : signed short { enum class E3 : unsigned short { A3 = 65535 } x3; // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E3" // CHECK-SAME: baseType: ![[USHORT:[0-9]+]] -// CHECK-SAME: DIFlagFixedEnum +// CHECK-SAME: DIFlagEnumClass // CHECK-SAME: elements: ![[ELTS3:[0-9]+]] // CHECK: ![[USHORT]] = !DIBasicType(name: "unsigned short", size: 16, encoding: DW_ATE_unsigned) // CHECK: ![[ELTS3]] = !{![[A3:[0-9]+]]} @@ -53,7 +53,7 @@ enum class E3 : unsigned short { A3 = 65535 } x3; enum class E4 : signed int { A4 = -2147483648, B4 = 2147483647 } x4; // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E4" // CHECK-SAME: baseType: ![[INT:[0-9]+]] -// CHECK-SAME: DIFlagFixedEnum +// CHECK-SAME: DIFlagEnumClass // CHECK-SAME: elements: ![[ELTS4:[0-9]+]] // CHECK: ![[INT]] = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) // CHECK: ![[ELTS4]] = !{![[A4:[0-9]+]], ![[B4:[0-9]+]]} @@ -63,7 +63,7 @@ enum class E4 : signed int { A4 = -2147483648, B4 = 2147483647 } x4; enum class E5 : unsigned int { A5 = 4294967295 } x5; // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E5" // CHECK-SAME: baseType: ![[UINT:[0-9]+]] -// CHECK-SAME: DIFlagFixedEnum +// CHECK-SAME: DIFlagEnumClass // CHECK-SAME: elements: ![[ELTS5:[0-9]+]] // CHECK: ![[UINT]] = !DIBasicType(name: "unsigned int", size: 32, encoding: DW_ATE_unsigned) // CHECK: ![[ELTS5]] = !{![[A5:[0-9]+]]} @@ -75,7 +75,7 @@ enum class E6 : signed long long { } x6; // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E6" // CHECK-SAME: baseType: ![[LONG:[0-9]+]] -// CHECK-SAME: DIFlagFixedEnum +// CHECK-SAME: DIFlagEnumClass // CHECK-SAME: elements: ![[ELTS6:[0-9]+]] // CHECK: ![[LONG]] = !DIBasicType(name: "long long int", size: 64, encoding: DW_ATE_signed) // CHECK: ![[ELTS6]] = !{![[A6:[0-9]+]], ![[B6:[0-9]+]]} @@ -85,7 +85,7 @@ enum class E6 : signed long long { enum class E7 : unsigned long long { A7 = 18446744073709551615ULL } x7; // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E7" // CHECK-SAME: baseType: ![[ULONG:[0-9]+]] -// CHECK-SAME: DIFlagFixedEnum +// CHECK-SAME: DIFlagEnumClass // CHECK-SAME: elements: ![[ELTS7:[0-9]+]] // CHECK: ![[ULONG]] = !DIBasicType(name: "long long unsigned int", size: 64, encoding: DW_ATE_unsigned) // CHECK: ![[ELTS7]] = !{![[A7:[0-9]+]]} @@ -95,6 +95,6 @@ enum class E7 : unsigned long long { A7 = 18446744073709551615ULL } x7; enum E8 { A8 = -128, B8 = 127 } x8; // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E8" // CHECK-SAME: baseType: ![[INT]] -// CHECK-NOT: DIFlagFixedEnum +// CHECK-NOT: DIFlagEnumClass // CHECK: !DIEnumerator(name: "A8", value: -128) diff --git a/test/CodeGenCXX/debug-info-enum-class.cpp b/test/CodeGenCXX/debug-info-enum-class.cpp index 664fbb74a8..3664c67bf3 100644 --- a/test/CodeGenCXX/debug-info-enum-class.cpp +++ b/test/CodeGenCXX/debug-info-enum-class.cpp @@ -15,7 +15,7 @@ D d; // CHECK-SAME: baseType: ![[INT:[0-9]+]] // CHECK-SAME: size: 32 // CHECK-NOT: offset: -// CHECK-SAME: flags: DIFlagFixedEnum +// CHECK-SAME: flags: DIFlagEnumClass // CHECK-SAME: ){{$}} // CHECK: ![[INT]] = !DIBasicType(name: "int" // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "B" @@ -23,7 +23,7 @@ D d; // CHECK-SAME: baseType: ![[ULONG:[0-9]+]] // CHECK-SAME: size: 64 // CHECK-NOT: offset: -// CHECK-SAME: flags: DIFlagFixedEnum +// CHECK-SAME: flags: DIFlagEnumClass // CHECK-SAME: ){{$}} // CHECK: ![[ULONG]] = !DIBasicType(name: "long unsigned int" // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "C" @@ -52,7 +52,7 @@ namespace test2 { // FIXME: this should just be a declaration under -fno-standalone-debug // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E" // CHECK-SAME: scope: [[TEST2:![0-9]+]] -// CHECK-NOT: DIFlagFixedEnum +// CHECK-NOT: DIFlagEnumClass // CHECK-SAME: elements: [[TEST_ENUMS:![0-9]+]] // CHECK-SAME: identifier: "_ZTSN5test21EE" // CHECK: [[TEST2]] = !DINamespace(name: "test2" @@ -68,7 +68,7 @@ namespace test3 { // FIXME: this should just be a declaration under -fno-standalone-debug // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E" // CHECK-SAME: scope: [[TEST3:![0-9]+]] -// CHECK-NOT: DIFlagFixedEnum +// CHECK-NOT: DIFlagEnumClass // CHECK-SAME: elements: [[TEST_ENUMS]] // CHECK-SAME: identifier: "_ZTSN5test31EE" // CHECK: [[TEST3]] = !DINamespace(name: "test3" @@ -80,7 +80,7 @@ void func(E *) { namespace test4 { // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "E" // CHECK-SAME: scope: [[TEST4:![0-9]+]] -// CHECK-NOT: DIFlagFixedEnum +// CHECK-NOT: DIFlagEnumClass // CHECK-SAME: elements: [[TEST_ENUMS]] // CHECK-SAME: identifier: "_ZTSN5test41EE" // CHECK: [[TEST4]] = !DINamespace(name: "test4"