Skip to content

Commit ae06ca0

Browse files
author
Justin Lebar
committed
Get rid of CHECK-SAME-NOT in tests.
Summary: This isn't a FileCheck directive; it does nothing. Reviewers: jroelofs Subscribers: cfe-commits, majnemer Differential Revision: http://reviews.llvm.org/D17051 llvm-svn: 260334
1 parent a61946d commit ae06ca0

File tree

6 files changed

+32
-21
lines changed

6 files changed

+32
-21
lines changed

clang/test/CodeGenCXX/optnone-and-attributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,4 +79,4 @@ int exported_optnone_func(int a) {
7979
// CHECK: attributes [[NORETURN]] = { noinline noreturn {{.*}} optnone
8080

8181
// CHECK: attributes [[DLLIMPORT]] =
82-
// CHECK-SAME-NOT: optnone
82+
// CHECK-NOT: optnone

clang/test/CodeGenCXX/optnone-class-members.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ int bar() {
159159

160160

161161
// CHECK: attributes [[NORMAL]] =
162-
// CHECK-SAME-NOT: noinline
163-
// CHECK-SAME-NOT: optnone
162+
// CHECK-NOT: noinline
163+
// CHECK-NOT: optnone
164164
// CHECK: attributes [[OPTNONE]] = {{.*}} noinline {{.*}} optnone

clang/test/CodeGenCXX/optnone-def-decl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,5 @@ int user_of_forceinline_optnone_function() {
9191

9292
// CHECK: attributes [[OPTNONE]] = { noinline nounwind optnone {{.*}} }
9393
// CHECK: attributes [[NORMAL]] =
94-
// CHECK-SAME-NOT: noinline
95-
// CHECK-SAME-NOT: optnone
94+
// CHECK-NOT: noinline
95+
// CHECK-NOT: optnone

clang/test/CodeGenCXX/optnone-templates.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,5 +100,5 @@ void container3()
100100

101101

102102
// CHECK: attributes [[NORMAL]] =
103-
// CHECK-SAME-NOT: optnone
103+
// CHECK-NOT: optnone
104104
// CHECK: attributes [[OPTNONE]] = {{.*}} optnone

clang/test/Modules/ModuleDebugInfo.cpp

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,29 @@
2020

2121
// CHECK: distinct !DICompileUnit(language: DW_LANG_{{.*}}C_plus_plus,
2222
// CHECK-SAME: isOptimized: false,
23-
// CHECK-SAME-NOT: splitDebugFilename:
24-
// CHECK: dwoId:
23+
// CHECK-NOT: splitDebugFilename:
24+
// CHECK-SAME: dwoId:
25+
// CHECK-SAME: )
2526

2627
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "Enum"
2728
// CHECK-SAME: identifier: "_ZTSN8DebugCXX4EnumE")
2829
// CHECK: !DINamespace(name: "DebugCXX"
2930

3031
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
31-
// CHECK-SAME-NOT: name:
32+
// CHECK-NOT: name:
33+
// CHECK-SAME: )
3234

3335
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
34-
// CHECK-SAME-NOT: name:
36+
// CHECK-NOT: name:
37+
// CHECK-SAME: )
3538

3639
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
37-
// CHECK-SAME-NOT: name:
40+
// CHECK-NOT: name:
3841
// CHECK-SAME: identifier: "_ZTS11TypedefEnum")
3942

4043
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
41-
// CHECK-SAME-NOT: name:
44+
// CHECK-NOT: name:
45+
// CHECK-SAME: )
4246
// CHECK: !DIEnumerator(name: "e5", value: 5)
4347

4448
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Struct"
@@ -61,11 +65,11 @@
6165
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "_vptr$FwdVirtual"
6266

6367
// CHECK: !DICompositeType(tag: DW_TAG_union_type,
64-
// CHECK-SAME-NOT: name:
68+
// CHECK-NOT: name:
6569
// CHECK-SAME: identifier: "_ZTS12TypedefUnion")
6670

6771
// CHECK: !DICompositeType(tag: DW_TAG_structure_type,
68-
// CHECK-SAME-NOT: name:
72+
// CHECK-NOT: name:
6973
// CHECK-SAME: identifier: "_ZTS13TypedefStruct")
7074

7175
// CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "FloatInstatiation"
@@ -75,10 +79,12 @@
7579
// no mangled name here yet.
7680

7781
// CHECK: !DICompositeType(tag: DW_TAG_union_type,
78-
// CHECK-SAME-NOT: name:
82+
// CHECK-NOT: name:
83+
// CHECK-SAME: )
7984

8085
// CHECK: !DICompositeType(tag: DW_TAG_structure_type,
81-
// CHECK-SAME-NOT: name:
86+
// CHECK-NOT: name:
87+
// CHECK-SAME: )
8288

8389
// CHECK: !DICompositeType(tag: DW_TAG_structure_type,
8490
// CHECK-SAME: name: "InAnonymousNamespace",

clang/test/Modules/ModuleDebugInfo.m

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
// CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugObjC
3232

3333
// CHECK: ![[TD_ENUM:.*]] = !DICompositeType(tag: DW_TAG_enumeration_type,
34-
// CHECK-SAME-NOT: name:
34+
// CHECK-NOT: name:
3535
// CHECK-SAME: elements:
36+
// CHECK-SAME: )
3637

3738
// CHECK: !DICompositeType(tag: DW_TAG_structure_type,
3839
// CHECK-SAME: name: "FwdDecl",
@@ -45,8 +46,9 @@
4546
// CHECK-SAME: elements:
4647

4748
// CHECK: ![[TD_UNION:.*]] = !DICompositeType(tag: DW_TAG_union_type,
48-
// CHECK-SAME-NOT: name:
49+
// CHECK-NOT: name:
4950
// CHECK-SAME: elements:
51+
// CHECK-SAME: )
5052

5153
// CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "TypedefUnion",
5254
// CHECK-SAME: baseType: ![[TD_UNION]])
@@ -55,16 +57,19 @@
5557
// CHECK-SAME: baseType: ![[TD_ENUM:.*]])
5658

5759
// CHECK: ![[TD_STRUCT:.*]] = !DICompositeType(tag: DW_TAG_structure_type,
58-
// CHECK-SAME-NOT: name:
60+
// CHECK-NOT: name:
5961
// CHECK-SAME: elements:
62+
// CHECK-SAME: )
6063
// CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "TypedefStruct",
6164
// CHECK-SAME: baseType: ![[TD_STRUCT]])
6265

6366
// CHECK: !DICompositeType(tag: DW_TAG_union_type,
64-
// CHECK-SAME-NOT: name:
67+
// CHECK-NOT: name:
68+
// CHECK-SAME: )
6569

6670
// CHECK: !DICompositeType(tag: DW_TAG_structure_type,
67-
// CHECK-SAME-NOT: name:
71+
// CHECK-NOT: name:
72+
// CHECK-SAME: )
6873

6974
// CHECK: !DISubprogram(name: "+[ObjCClass classMethod]",
7075
// CHECK-SAME: scope: ![[MODULE]],

0 commit comments

Comments
 (0)