mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Avoid unnecessary linking in SIL tools
Previously we were linking in all SIL entities if the input was a serialized non-SIB AST, and `-disable-sil-linking` wasn't specified. However none of the tests appear to want this behaviour. Stop calling `SerializedSILLoader::getAll`, and remove the `-disable-sil-linking` option, as this is now the default behaviour.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
|
||||
// RUN: %empty-directory(%t)
|
||||
// RUN: echo 'import SerializedSIL' | %target-swift-frontend -typecheck -module-cache-path %t -I %S -
|
||||
// RUN: %target-sil-opt -disable-sil-linking %t/SerializedSIL-*.swiftmodule -module-name SerializedSIL > %t/SerializedSIL.sil
|
||||
// RUN: %target-sil-opt %t/SerializedSIL-*.swiftmodule -module-name SerializedSIL > %t/SerializedSIL.sil
|
||||
// RUN: %FileCheck %s < %t/SerializedSIL.sil
|
||||
// RUN: %FileCheck -check-prefix NEGATIVE %s < %t/SerializedSIL.sil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user