Skip to content

Commit a11e67b

Browse files
committed
---
yaml --- r: 261983 b: refs/heads/tensorflow c: b570a5d h: refs/heads/master i: 261981: 43ccd55 261979: c609883 261975: bb945fe 261967: ec048e1 261951: 207d9b1
1 parent 14cf229 commit a11e67b

File tree

11 files changed

+12
-24
lines changed

11 files changed

+12
-24
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
818818
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
819819
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
820820
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
821-
refs/heads/tensorflow: 644d1d61fbd82044297cc137a24b5489ec57dc6a
821+
refs/heads/tensorflow: b570a5de876f66260656a7d5b41e69d804249856
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
823823
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
824824
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/include/swift/Basic/LangOptions.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,6 @@ namespace swift {
241241
/// This is for bootstrapping. It can't be in SILOptions because the
242242
/// TypeChecker uses it to set resolve the ParameterConvention.
243243
bool EnableSILOpaqueValues = false;
244-
245-
/// Enables key path resilience.
246-
bool EnableKeyPathResilience = true;
247244

248245
/// If set to true, the diagnosis engine can assume the emitted diagnostics
249246
/// will be used in editor. This usually leads to more aggressive fixit.

branches/tensorflow/include/swift/Option/FrontendOptions.td

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,6 @@ def enable_verify_exclusivity : Flag<["-"], "enable-verify-exclusivity">,
547547
def disable_verify_exclusivity : Flag<["-"], "disable-verify-exclusivity">,
548548
HelpText<"Diable verification of access markers used to enforce exclusivity.">;
549549

550-
def enable_key_path_resilience : Flag<["-"], "enable-key-path-resilience">,
551-
HelpText<"Enable key path resilience.">;
552-
553550
def type_info_dump_filter_EQ : Joined<["-"], "type-info-dump-filter=">,
554551
Flags<[FrontendOption]>,
555552
HelpText<"One of 'all', 'resilient' or 'fragile'">;

branches/tensorflow/lib/Frontend/CompilerInvocation.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,6 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
415415
Target.isOSDarwin());
416416
Opts.EnableSILOpaqueValues |= Args.hasArg(OPT_enable_sil_opaque_values);
417417

418-
Opts.EnableKeyPathResilience |= Args.hasArg(OPT_enable_key_path_resilience);
419-
420418
#if SWIFT_DARWIN_ENABLE_STABLE_ABI_BIT
421419
Opts.UseDarwinPreStableABIBit = false;
422420
#else

branches/tensorflow/lib/SILGen/SILGen.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,9 +1420,6 @@ static bool canStorageUseTrivialDescriptor(SILGenModule &SGM,
14201420
}
14211421

14221422
void SILGenModule::tryEmitPropertyDescriptor(AbstractStorageDecl *decl) {
1423-
if (!M.getASTContext().LangOpts.EnableKeyPathResilience)
1424-
return;
1425-
14261423
// TODO: Key path code emission doesn't handle opaque values properly yet.
14271424
if (!SILModuleConventions(M).useLoweredAddresses())
14281425
return;

branches/tensorflow/lib/TBDGen/TBDGen.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ void TBDGenVisitor::visitAccessorDecl(AccessorDecl *AD) {
208208

209209
void TBDGenVisitor::visitAbstractStorageDecl(AbstractStorageDecl *ASD) {
210210
// Add the property descriptor if the decl needs it.
211-
if (SwiftModule->getASTContext().LangOpts.EnableKeyPathResilience
212-
&& ASD->exportsPropertyDescriptor()) {
211+
if (ASD->exportsPropertyDescriptor()) {
213212
addSymbol(LinkEntity::forPropertyDescriptor(ASD));
214213
}
215214

branches/tensorflow/test/SILGen/external-keypath.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend -enable-resilience -emit-module -o %t/ExternalKeyPaths.swiftmodule -module-name ExternalKeyPaths %S/Inputs/ExternalKeyPaths.swift
3-
// RUN: %target-swift-emit-silgen -swift-version 5 -enable-key-path-resilience -I %t %s | %FileCheck %s
3+
// RUN: %target-swift-emit-silgen -swift-version 5 -I %t %s | %FileCheck %s
44

55
import ExternalKeyPaths
66

branches/tensorflow/test/SILGen/keypath_property_descriptors.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-emit-silgen -enable-key-path-resilience %s | %FileCheck --check-prefix=CHECK --check-prefix=NONRESILIENT %s
2-
// RUN: %target-swift-emit-silgen -enable-resilience -enable-key-path-resilience %s | %FileCheck --check-prefix=CHECK --check-prefix=RESILIENT %s
1+
// RUN: %target-swift-emit-silgen %s | %FileCheck --check-prefix=CHECK --check-prefix=NONRESILIENT %s
2+
// RUN: %target-swift-emit-silgen -enable-resilience %s | %FileCheck --check-prefix=CHECK --check-prefix=RESILIENT %s
33

44
// TODO: globals should get descriptors
55
public var a: Int = 0

branches/tensorflow/test/SILGen/keypaths_multi_file.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %empty-directory(%t)
22

3-
// RUN: %target-build-swift -module-name keypaths_resilient -emit-module -Xfrontend -enable-key-path-resilience %S/Inputs/keypaths_multi_file_c.swift -emit-module-path %t/keypaths_resilient.swiftmodule
3+
// RUN: %target-build-swift -module-name keypaths_resilient -emit-module %S/Inputs/keypaths_multi_file_c.swift -emit-module-path %t/keypaths_resilient.swiftmodule
44

55
// RUN: %target-swift-emit-silgen -module-name keypaths -primary-file %s %S/Inputs/keypaths_multi_file_b.swift -I %t | %FileCheck %s
66
// RUN: %target-swift-emit-silgen -module-name keypaths %s -primary-file %S/Inputs/keypaths_multi_file_b.swift -I %t | %FileCheck --check-prefix=DEFINITION %s

branches/tensorflow/test/SILGen/keypaths_objc.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) -enable-key-path-resilience -import-objc-header %S/Inputs/keypaths_objc.h %s | %FileCheck %s
2-
// RUN: %target-swift-emit-ir(mock-sdk: %clang-importer-sdk) -enable-key-path-resilience -import-objc-header %S/Inputs/keypaths_objc.h %s
1+
// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) -import-objc-header %S/Inputs/keypaths_objc.h %s | %FileCheck %s
2+
// RUN: %target-swift-emit-ir(mock-sdk: %clang-importer-sdk) -import-objc-header %S/Inputs/keypaths_objc.h %s
33
// REQUIRES: objc_interop
44

55
import Foundation

branches/tensorflow/test/stdlib/KeyPathMultiModule.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// -- Test with resilience enabled
22
// RUN: %empty-directory(%t)
3-
// RUN: %target-build-swift -force-single-frontend-invocation -Xfrontend -enable-key-path-resilience -Xfrontend -enable-resilience -module-name KeyPathMultiModule_b -c -o %t/KeyPathMultiModule_b.o -emit-module-path %t/KeyPathMultiModule_b.swiftmodule -parse-as-library %S/Inputs/KeyPathMultiModule_b.swift
4-
// RUN: %target-build-swift -g -Xfrontend -enable-key-path-resilience %t/KeyPathMultiModule_b.o -I %t %s -o %t/a.out.resilient
3+
// RUN: %target-build-swift -force-single-frontend-invocation -Xfrontend -enable-resilience -module-name KeyPathMultiModule_b -c -o %t/KeyPathMultiModule_b.o -emit-module-path %t/KeyPathMultiModule_b.swiftmodule -parse-as-library %S/Inputs/KeyPathMultiModule_b.swift
4+
// RUN: %target-build-swift -g %t/KeyPathMultiModule_b.o -I %t %s -o %t/a.out.resilient
55
// RUN: %target-codesign %t/a.out.resilient
66
// RUN: %target-run %t/a.out.resilient
77

88
// -- Test again with resilience disabled, which changes the circumstances under
99
// which we emit and use property descriptors
1010
// RUN: %empty-directory(%t)
11-
// RUN: %target-build-swift -force-single-frontend-invocation -Xfrontend -enable-key-path-resilience -module-name KeyPathMultiModule_b -c -o %t/KeyPathMultiModule_b.o -emit-module-path %t/KeyPathMultiModule_b.swiftmodule -parse-as-library %S/Inputs/KeyPathMultiModule_b.swift
12-
// RUN: %target-build-swift -Xfrontend -enable-key-path-resilience %t/KeyPathMultiModule_b.o -I %t %s -o %t/a.out.fragile
11+
// RUN: %target-build-swift -force-single-frontend-invocation -module-name KeyPathMultiModule_b -c -o %t/KeyPathMultiModule_b.o -emit-module-path %t/KeyPathMultiModule_b.swiftmodule -parse-as-library %S/Inputs/KeyPathMultiModule_b.swift
12+
// RUN: %target-build-swift %t/KeyPathMultiModule_b.o -I %t %s -o %t/a.out.fragile
1313
// RUN: %target-codesign %t/a.out.fragile
1414
// RUN: %target-run %t/a.out.fragile
1515

0 commit comments

Comments
 (0)