Skip to content

Commit ff4f234

Browse files
committed
DebugInfo: loosen producer pattern
Be more accepting of vendor patterns. Any name can be added by configuration, so loosen the test.
1 parent deb32b2 commit ff4f234

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/DebugInfo/compiler-flags-macosx.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
// RUN: %swiftc_driver %s -emit-ir -g -Xfrontend -disable-legacy-type-info -target x86_64-apple-macosx10.10 -parse-stdlib -module-name scratch -o - | %FileCheck %s
66
// RUN: env RC_DEBUG_OPTIONS=1 %swiftc_driver %s -emit-ir -g -Xfrontend -disable-legacy-type-info -target x86_64-apple-macosx10.10 -parse-stdlib -module-name scratch -o - | %FileCheck --check-prefix CHECK-VAR-SET %s
7-
// CHECK: !DICompileUnit({{.*}} producer: "{{(Apple )?Swift version [^"]+}}"
7+
// CHECK: !DICompileUnit({{.*}} producer: "{{[^"]*Swift version [^"]+}}"
88
// CHECK-NOT: flags: "
9-
// CHECK-VAR-SET: !DICompileUnit({{.*}}producer: "{{(Apple )?Swift version [^"]+}}"
9+
// CHECK-VAR-SET: !DICompileUnit({{.*}}producer: "{{[^"]*Swift version [^"]+}}"
1010
// CHECK-VAR-SET-SAME: flags: "
1111
// CHECK-VAR-SET-NOT: "
1212
// CHECK-VAR-SET-SAME: -resource-dir

test/DebugInfo/compiler-flags.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
// RUN: %target-swiftc_driver %s -emit-ir -debug-info-store-invocation -g -o - | %FileCheck %s
66
// RUN: %target-swiftc_driver %s -emit-ir -debug-info-store-invocation -sdk "/Weird Location/SDK" -g -o - | %FileCheck --check-prefix CHECK-EXPLICIT %s
7-
// CHECK: !DICompileUnit({{.*}}producer: "{{(Apple )?Swift version [^"]+}}"
7+
// CHECK: !DICompileUnit({{.*}}producer: "{{[^"]*Swift version [^"]+}}"
88
// CHECK-SAME: flags: "
99
// CHECK-NOT: "
1010
// CHECK-SAME: -resource-dir
11-
// CHECK-EXPLICIT: !DICompileUnit({{.*}}producer: "{{(Apple )?Swift version [^"]+}}"
11+
// CHECK-EXPLICIT: !DICompileUnit({{.*}}producer: "{{[^"]*Swift version [^"]+}}"
1212
// CHECK-EXPLICIT-SAME: flags: "
1313
// CHECK-EXPLICIT-NOT: "
1414
// CHECK-EXPLICIT-SAME: -sdk \22/Weird Location/SDK\22

0 commit comments

Comments
 (0)