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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Justin Lebar 2016-02-10 00:38:15 +00:00
parent 3801af21ff
commit 1fa0280bb9
6 changed files with 32 additions and 21 deletions

View File

@ -79,4 +79,4 @@ int exported_optnone_func(int a) {
// CHECK: attributes [[NORETURN]] = { noinline noreturn {{.*}} optnone // CHECK: attributes [[NORETURN]] = { noinline noreturn {{.*}} optnone
// CHECK: attributes [[DLLIMPORT]] = // CHECK: attributes [[DLLIMPORT]] =
// CHECK-SAME-NOT: optnone // CHECK-NOT: optnone

View File

@ -159,6 +159,6 @@ int bar() {
// CHECK: attributes [[NORMAL]] = // CHECK: attributes [[NORMAL]] =
// CHECK-SAME-NOT: noinline // CHECK-NOT: noinline
// CHECK-SAME-NOT: optnone // CHECK-NOT: optnone
// CHECK: attributes [[OPTNONE]] = {{.*}} noinline {{.*}} optnone // CHECK: attributes [[OPTNONE]] = {{.*}} noinline {{.*}} optnone

View File

@ -91,5 +91,5 @@ int user_of_forceinline_optnone_function() {
// CHECK: attributes [[OPTNONE]] = { noinline nounwind optnone {{.*}} } // CHECK: attributes [[OPTNONE]] = { noinline nounwind optnone {{.*}} }
// CHECK: attributes [[NORMAL]] = // CHECK: attributes [[NORMAL]] =
// CHECK-SAME-NOT: noinline // CHECK-NOT: noinline
// CHECK-SAME-NOT: optnone // CHECK-NOT: optnone

View File

@ -100,5 +100,5 @@ void container3()
// CHECK: attributes [[NORMAL]] = // CHECK: attributes [[NORMAL]] =
// CHECK-SAME-NOT: optnone // CHECK-NOT: optnone
// CHECK: attributes [[OPTNONE]] = {{.*}} optnone // CHECK: attributes [[OPTNONE]] = {{.*}} optnone

View File

@ -20,25 +20,29 @@
// CHECK: distinct !DICompileUnit(language: DW_LANG_{{.*}}C_plus_plus, // CHECK: distinct !DICompileUnit(language: DW_LANG_{{.*}}C_plus_plus,
// CHECK-SAME: isOptimized: false, // CHECK-SAME: isOptimized: false,
// CHECK-SAME-NOT: splitDebugFilename: // CHECK-NOT: splitDebugFilename:
// CHECK: dwoId: // CHECK-SAME: dwoId:
// CHECK-SAME: )
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "Enum" // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, name: "Enum"
// CHECK-SAME: identifier: "_ZTSN8DebugCXX4EnumE") // CHECK-SAME: identifier: "_ZTSN8DebugCXX4EnumE")
// CHECK: !DINamespace(name: "DebugCXX" // CHECK: !DINamespace(name: "DebugCXX"
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: )
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: )
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: identifier: "_ZTS11TypedefEnum") // CHECK-SAME: identifier: "_ZTS11TypedefEnum")
// CHECK: !DICompositeType(tag: DW_TAG_enumeration_type, // CHECK: !DICompositeType(tag: DW_TAG_enumeration_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: )
// CHECK: !DIEnumerator(name: "e5", value: 5) // CHECK: !DIEnumerator(name: "e5", value: 5)
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Struct" // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Struct"
@ -61,11 +65,11 @@
// CHECK: !DIDerivedType(tag: DW_TAG_member, name: "_vptr$FwdVirtual" // CHECK: !DIDerivedType(tag: DW_TAG_member, name: "_vptr$FwdVirtual"
// CHECK: !DICompositeType(tag: DW_TAG_union_type, // CHECK: !DICompositeType(tag: DW_TAG_union_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: identifier: "_ZTS12TypedefUnion") // CHECK-SAME: identifier: "_ZTS12TypedefUnion")
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, // CHECK: !DICompositeType(tag: DW_TAG_structure_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: identifier: "_ZTS13TypedefStruct") // CHECK-SAME: identifier: "_ZTS13TypedefStruct")
// CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "FloatInstatiation" // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "FloatInstatiation"
@ -75,10 +79,12 @@
// no mangled name here yet. // no mangled name here yet.
// CHECK: !DICompositeType(tag: DW_TAG_union_type, // CHECK: !DICompositeType(tag: DW_TAG_union_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: )
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, // CHECK: !DICompositeType(tag: DW_TAG_structure_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: )
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, // CHECK: !DICompositeType(tag: DW_TAG_structure_type,
// CHECK-SAME: name: "InAnonymousNamespace", // CHECK-SAME: name: "InAnonymousNamespace",

View File

@ -31,8 +31,9 @@
// CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugObjC // CHECK: ![[MODULE]] = !DIModule(scope: null, name: "DebugObjC
// CHECK: ![[TD_ENUM:.*]] = !DICompositeType(tag: DW_TAG_enumeration_type, // CHECK: ![[TD_ENUM:.*]] = !DICompositeType(tag: DW_TAG_enumeration_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: elements: // CHECK-SAME: elements:
// CHECK-SAME: )
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, // CHECK: !DICompositeType(tag: DW_TAG_structure_type,
// CHECK-SAME: name: "FwdDecl", // CHECK-SAME: name: "FwdDecl",
@ -45,8 +46,9 @@
// CHECK-SAME: elements: // CHECK-SAME: elements:
// CHECK: ![[TD_UNION:.*]] = !DICompositeType(tag: DW_TAG_union_type, // CHECK: ![[TD_UNION:.*]] = !DICompositeType(tag: DW_TAG_union_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: elements: // CHECK-SAME: elements:
// CHECK-SAME: )
// CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "TypedefUnion", // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "TypedefUnion",
// CHECK-SAME: baseType: ![[TD_UNION]]) // CHECK-SAME: baseType: ![[TD_UNION]])
@ -55,16 +57,19 @@
// CHECK-SAME: baseType: ![[TD_ENUM:.*]]) // CHECK-SAME: baseType: ![[TD_ENUM:.*]])
// CHECK: ![[TD_STRUCT:.*]] = !DICompositeType(tag: DW_TAG_structure_type, // CHECK: ![[TD_STRUCT:.*]] = !DICompositeType(tag: DW_TAG_structure_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: elements: // CHECK-SAME: elements:
// CHECK-SAME: )
// CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "TypedefStruct", // CHECK: !DIDerivedType(tag: DW_TAG_typedef, name: "TypedefStruct",
// CHECK-SAME: baseType: ![[TD_STRUCT]]) // CHECK-SAME: baseType: ![[TD_STRUCT]])
// CHECK: !DICompositeType(tag: DW_TAG_union_type, // CHECK: !DICompositeType(tag: DW_TAG_union_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: )
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, // CHECK: !DICompositeType(tag: DW_TAG_structure_type,
// CHECK-SAME-NOT: name: // CHECK-NOT: name:
// CHECK-SAME: )
// CHECK: !DISubprogram(name: "+[ObjCClass classMethod]", // CHECK: !DISubprogram(name: "+[ObjCClass classMethod]",
// CHECK-SAME: scope: ![[MODULE]], // CHECK-SAME: scope: ![[MODULE]],