Skip to content

Commit c4a11f4

Browse files
committed
tests: remove the now unused option -new-mangling-for-tests
1 parent 2dc6104 commit c4a11f4

File tree

496 files changed

+616
-620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

496 files changed

+616
-620
lines changed

lib/Basic/Mangler.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@
2121
using namespace swift;
2222
using namespace Mangle;
2323

24-
llvm::cl::opt<bool> MangleForTests(
25-
"new-mangling-for-tests", llvm::cl::init(false),
26-
llvm::cl::desc("Use new mangling for compiler tests"));
27-
2824
#ifndef NDEBUG
2925

3026
llvm::cl::opt<bool> PrintSwiftManglingStats(

test/ClangImporter/attr-swift_private.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %build-clang-importer-objc-overlays
33

44
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -typecheck %s -verify -verify-ignore-unknown
5-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -Xllvm -new-mangling-for-tests -I %S/Inputs/custom-modules -emit-ir %s -D IRGEN | %FileCheck %s
5+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -emit-ir %s -D IRGEN | %FileCheck %s
66

77
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -print-module -source-filename="%s" -module-to-print SwiftPrivateAttr > %t.txt
88
// RUN: %FileCheck -check-prefix=GENERATED-NEGATIVE %s < %t.txt

test/ClangImporter/ctypes_ir.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xllvm -new-mangling-for-tests -emit-ir -o - -primary-file %s | %FileCheck %s
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-ir -o - -primary-file %s | %FileCheck %s
22

33
// REQUIRES: OS=macosx
44

test/ClangImporter/nullability_silgen.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: rm -rf %t && mkdir -p %t
22
// RUN: %build-clang-importer-objc-overlays
33

4-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -Xllvm -new-mangling-for-tests -emit-silgen -I %S/Inputs/custom-modules %s | %FileCheck %s
4+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -emit-silgen -I %S/Inputs/custom-modules %s | %FileCheck %s
55

66
// REQUIRES: objc_interop
77

test/ClangImporter/objc_ir.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: rm -rf %t && mkdir -p %t
22
// RUN: %build-clang-importer-objc-overlays
3-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -Xllvm -new-mangling-for-tests -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s | %FileCheck %s
3+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) -I %S/Inputs/custom-modules -emit-ir -o - -primary-file %s | %FileCheck %s
44

55
// REQUIRES: objc_interop
66
// REQUIRES: OS=macosx

test/ClangImporter/optional.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -Xllvm -new-mangling-for-tests -I %S/Inputs/custom-modules -emit-silgen -o - %s | %FileCheck %s
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -I %S/Inputs/custom-modules -emit-silgen -o - %s | %FileCheck %s
22

33
// REQUIRES: objc_interop
44

test/ClangImporter/serialization-sil.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-module-path %t/Test.swiftmodule -emit-sil -o /dev/null -module-name Test %s -sdk "" -import-objc-header %S/Inputs/serialization-sil.h
2+
// RUN: %target-swift-frontend -emit-module-path %t/Test.swiftmodule -emit-sil -o /dev/null -module-name Test %s -sdk "" -import-objc-header %S/Inputs/serialization-sil.h
33
// RUN: %target-sil-func-extractor %t/Test.swiftmodule -func=_T04Test16testPartialApplyySoAA_pF -o - | %FileCheck %s
44

55
// REQUIRES: objc_interop

test/ClangImporter/static_inline.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
// Check if SIL printing+parsing of a clang imported function works.
44

5-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -parse-as-library -module-name=test -emit-sil %s -import-objc-header %S/Inputs/static_inline.h -o %t/test.sil
5+
// RUN: %target-swift-frontend -parse-as-library -module-name=test -emit-sil %s -import-objc-header %S/Inputs/static_inline.h -o %t/test.sil
66
// RUN: %FileCheck < %t/test.sil %s
7-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -parse-as-library -module-name=test -O -emit-ir %t/test.sil -import-objc-header %S/Inputs/static_inline.h | %FileCheck --check-prefix=CHECK-IR %s
7+
// RUN: %target-swift-frontend -parse-as-library -module-name=test -O -emit-ir %t/test.sil -import-objc-header %S/Inputs/static_inline.h | %FileCheck --check-prefix=CHECK-IR %s
88

99
// CHECK: sil shared [clang c_inline_func] @c_inline_func : $@convention(c) (Int32) -> Int32
1010

test/DebugInfo/Constructors.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22
struct Foo {
33
// Allocating constructor - should have no line table info.
44
// CHECK: !DISubprogram(name: "init", linkageName: "_T012Constructors3FooVACs5Int64V1x_tcfC",

test/DebugInfo/Destructors.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
public class Foo {
44
// CHECK: !DISubprogram(name: "deinit", linkageName: "_T011Destructors3FooCfD"

test/DebugInfo/DynamicSelf.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
class C {
44
let n : Int64

test/DebugInfo/EagerTypeMetadata.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -Onone -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -Onone -emit-ir -g -o - | %FileCheck %s
22

33
public class C<T>
44
{

test/DebugInfo/ProtocolContainer.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/WeakCapture.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22
class A {
33
init(handler: (() -> ())) { }
44
}

test/DebugInfo/alloca-init.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/apple-types-accel.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
2-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -c -g -o %t.o
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -c -g -o %t.o
33
// RUN: dwarfdump --apple-types %t.o | %FileCheck --check-prefix=CHECK-ACCEL %s
44
// RUN: dwarfdump --debug-info %t.o | %FileCheck --check-prefix=CHECK-DWARF %s
55
// DISABLED <rdar://problem/28232630>: dwarfdump --verify %t.o

test/DebugInfo/archetype.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
22

33
protocol IntegerArithmetic {
44
static func uncheckedSubtract(_ lhs: Self, rhs: Self) -> (Self, Bool)

test/DebugInfo/archetypes2.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -verify -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -verify -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/arg-debug_value.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
22

33
// Verify that arguments described by debug_value intrinsics are only
44
// emitted once.

test/DebugInfo/attributes.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -disable-objc-attr-requires-foundation-module %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -disable-objc-attr-requires-foundation-module %s -emit-ir -g -o - | %FileCheck %s
22

33
// REQUIRES: objc_interop
44

test/DebugInfo/atype.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/autoclosure.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
// CHECK: define{{.*}}@_T011autoclosure7call_meys5Int64VF
44
// CHECK-NOT: ret void

test/DebugInfo/bound-namealiastype.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-ir -g %s -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
22

33
public protocol OS_dispatch_queue {
44
}

test/DebugInfo/capturelist.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22
class C {
33
func withClosure(_ : () -> ()) -> () {}
44

test/DebugInfo/cleanupskip.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-ir -g %s -o - -O -disable-llvm-optzns | %FileCheck %s
1+
// RUN: %target-swift-frontend -emit-ir -g %s -o - -O -disable-llvm-optzns | %FileCheck %s
22
// REQUIRES: objc_interop
33
import Foundation
44

test/DebugInfo/closure-arg-linetable.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
public class C {
44

test/DebugInfo/closure-args.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
import Swift
44

test/DebugInfo/closure-multivalue.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public func demo() {
3131
demo()
3232

3333
// At -O0, we should have a single aggregate argument.
34-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s --check-prefix=CHECK-O0
34+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s --check-prefix=CHECK-O0
3535
// Verify that a reabstraction thunk does not have a line number.
3636
// CHECK-O0-NOT: DW_OP_bit_piece
3737
// CHECK-O0-NOT: DW_OP_bit_piece

test/DebugInfo/closure.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/conditional-assign.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-sil -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-sil -g -o - | %FileCheck %s
22
public protocol DelegateA {}
33
public protocol DelegateB {}
44
public protocol WithDelegate

test/DebugInfo/debug_value_addr.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s
2-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-sil -g -o - | %FileCheck -check-prefix=CHECK-SIL %s
1+
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-sil -g -o - | %FileCheck -check-prefix=CHECK-SIL %s
33

44
// Verify that -Onone shadow copies are emitted for debug_value_addr
55
// instructions.

test/DebugInfo/dynamic_layout.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/generic_arg.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22
import StdlibUnittest
33
func foo<T>(_ x: T) -> () {
44
// CHECK: define {{.*}} @_T011generic_arg3fooyxlF

test/DebugInfo/generic_arg2.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
// CHECK: define hidden swiftcc void @_T012generic_arg25ClassC3foo{{.*}}, %swift.type* %U
44
// CHECK: call void @llvm.dbg.declare(metadata %swift.opaque** %y.addr, metadata ![[U:.*]], metadata !{{[0-9]+}})

test/DebugInfo/generic_arg3.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
func apply<Type>(_ T : Type, fn: (Type) -> Type) -> Type { return fn(T) }
44

test/DebugInfo/generic_arg4.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22
// REQUIRES: objc_interop
33
public struct Q<T> {
44
let x: T

test/DebugInfo/generic_arg5.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22
public struct S<Type>
33
{
44
let value : Type

test/DebugInfo/generic_args.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -verify -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -primary-file %s -emit-ir -verify -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/generic_enum.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/generic_enum_closure.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
22

33
struct __CurrentErrno {}
44
struct CErrorOr<T>

test/DebugInfo/gsil.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -O -gsil -emit-ir -o %t/out.ir
2+
// RUN: %target-swift-frontend %s -O -gsil -emit-ir -o %t/out.ir
33
// RUN: %FileCheck %s < %t/out.ir
44
// RUN: %FileCheck %s --check-prefix=CHECK_OUT_SIL < %t/out.ir.gsil_0.sil
55

test/DebugInfo/guard-let.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
2-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s --check-prefix=CHECK2
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s --check-prefix=CHECK2
33
func use<T>(_ t: T) {}
44

55
public func f(_ i : Int?)

test/DebugInfo/implicitdecl.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-ir -g %s -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
22

33
// REQUIRES: objc_interop
44

test/DebugInfo/initializer.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -import-objc-header %S/Inputs/serialized-objc-header.h -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -import-objc-header %S/Inputs/serialized-objc-header.h -emit-ir -g -o - | %FileCheck %s
22

33
// REQUIRES: objc_interop
44

test/DebugInfo/inlined-generics.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -Xllvm -sil-inline-generics=true %s -O -g -o - -emit-ir | %FileCheck %s
1+
// RUN: %target-swift-frontend -Xllvm -sil-inline-generics=true %s -O -g -o - -emit-ir | %FileCheck %s
22
public protocol P {
33
associatedtype DT1
44
func getDT() -> DT1

test/DebugInfo/inlinedAt.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -O -I %t -emit-sil -emit-verbose-sil -o - \
1+
// RUN: %target-swift-frontend %s -O -I %t -emit-sil -emit-verbose-sil -o - \
22
// RUN: | %FileCheck %s --check-prefix=CHECK-SIL
3-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -O -I %t -emit-ir -g -o - | %FileCheck %s
3+
// RUN: %target-swift-frontend %s -O -I %t -emit-ir -g -o - | %FileCheck %s
44

55
public var glob : Int = 0
66
@inline(never) public func hold(_ n : Int) { glob = n }

test/DebugInfo/inlinescopes.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: rm -rf %t
22
// RUN: mkdir -p %t
33
// RUN: echo "public var x = Int64()" \
4-
// RUN: | %target-swift-frontend -Xllvm -new-mangling-for-tests -module-name FooBar -emit-module -o %t -
5-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -O -I %t -emit-ir -g -o %t.ll
4+
// RUN: | %target-swift-frontend -module-name FooBar -emit-module -o %t -
5+
// RUN: %target-swift-frontend %s -O -I %t -emit-ir -g -o %t.ll
66
// RUN: %FileCheck %s < %t.ll
77
// RUN: %FileCheck %s -check-prefix=TRANSPARENT-CHECK < %t.ll
88

test/DebugInfo/iuo_arg.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
class CGImageRef {}
44
class UIImage {

test/DebugInfo/letstring.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o %t.ll
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o %t.ll
22
// RUN: %FileCheck %s < %t.ll
33

44
class UIWindow {}

test/DebugInfo/linetable-cleanups.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/linetable.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
2-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -S -g -o - | %FileCheck %s --check-prefix ASM-CHECK
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
2+
// RUN: %target-swift-frontend %s -S -g -o - | %FileCheck %s --check-prefix ASM-CHECK
33

44
// REQUIRES: CPU=i386_or_x86_64
55

test/DebugInfo/parent-scope.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -g -emit-ir %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -g -emit-ir %s | %FileCheck %s
22

33
public protocol P {
44
associatedtype AT;

test/DebugInfo/patternvars.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
@_fixed_layout
44
public struct UnicodeScalar {

test/DebugInfo/pcomp.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -primary-file %s -emit-ir -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44

test/DebugInfo/prologue.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -primary-file %s -S -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -primary-file %s -S -g -o - | %FileCheck %s
22

33
// REQUIRES: CPU=x86_64
44

test/DebugInfo/protocol-sugar.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22
protocol A {}
33
protocol B {}
44
typealias C = B & A

test/DebugInfo/protocol.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
protocol PointUtils {
44
func distanceFromOrigin() -> Float

test/DebugInfo/protocolarg.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -emit-ir -g -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
22

33
func markUsed<T>(_ t: T) {}
44
func use<T>(_ t: inout T) {}

test/DebugInfo/return.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests %s -g -emit-ir -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -g -emit-ir -o - | %FileCheck %s
22

33
class X {
44
init (i : Int64) { x = i }

test/DebugInfo/scope-closure.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -Xllvm -new-mangling-for-tests -emit-ir -g %s -o - | %FileCheck %s
1+
// RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
22
//
33
// A top-level closure is expected to have the main module as scope and not the
44
// top_level_code function.

0 commit comments

Comments
 (0)