mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
With the option -sil-print-debuginfo the printing of debug locations and scopes can be enabled. I made the default for the option “false”, because in 99% of the time I don’t need the debug info in the printed SIL and I prefer better readability.
18 lines
831 B
Swift
18 lines
831 B
Swift
// RUN: %target-swift-frontend -sdk %S/../SILGen/Inputs -I %S/../SILGen/Inputs -Xllvm -sil-print-debuginfo -enable-source-import -primary-file %s -emit-sil -emit-verbose-sil | %FileCheck %s -check-prefix=CHECK-DEBUG
|
|
// RUN: %target-swift-frontend -sdk %S/../SILGen/Inputs -I %S/../SILGen/Inputs -Xllvm -sil-print-debuginfo -enable-source-import -primary-file %s -emit-sil -emit-verbose-sil -O | %FileCheck %s -check-prefix=CHECK-RELEASE
|
|
|
|
// XFAIL: linux
|
|
|
|
import gizmo
|
|
|
|
// Test that binaries compiled in release mode don't leak filenames of users'
|
|
// code through calls to runtime trap function for unimplemented initializers.
|
|
|
|
class DesignatedStubs : Gizmo {
|
|
override init() { super.init() }
|
|
}
|
|
// CHECK-DEBUG: string_literal utf8 "{{.*}}unimplemented_initializer.swift",
|
|
|
|
// CHECK-RELEASE-NOT: unimplemented_initializer.swift",
|
|
|