Skip to content

Commit d93e375

Browse files
committed
---
yaml --- r: 340335 b: refs/heads/rxwei-patch-1 c: f0e3a99 h: refs/heads/master i: 340333: b76a03b 340331: ae5b737 340327: 66b3d16 340319: e456e42
1 parent f964c9a commit d93e375

File tree

197 files changed

+911
-1981
lines changed

Some content is hidden

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

197 files changed

+911
-1981
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: b48175525e888db6440cbd338f175a284852e873
1018+
refs/heads/rxwei-patch-1: f0e3a99f97775b2c22a6b6c5708770714199eb04
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,17 +223,6 @@ option(SWIFT_STDLIB_ENABLE_SIB_TARGETS
223223
"Should we generate sib targets for the stdlib or not?"
224224
FALSE)
225225

226-
227-
set(SWIFT_DARWIN_SUPPORTED_ARCHS "" CACHE STRING
228-
"Semicolon-separated list of architectures to configure on Darwin platforms. \
229-
If left empty all default architectures are configured.")
230-
231-
set(SWIFT_DARWIN_MODULE_ARCHS "" CACHE STRING
232-
"Semicolon-separated list of architectures to configure Swift module-only \
233-
targets on Darwin platforms. These targets are in addition to the full \
234-
library targets.")
235-
236-
237226
#
238227
# User-configurable Android specific options.
239228
#

branches/rxwei-patch-1/cmake/modules/AddSwift.cmake

Lines changed: 9 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,6 @@ function(_add_variant_c_compile_flags)
303303
"-fcoverage-mapping")
304304
endif()
305305

306-
if((CFLAGS_ARCH STREQUAL "armv7" OR CFLAGS_ARCH STREQUAL "aarch64") AND
307-
(CFLAGS_SDK STREQUAL "LINUX" OR CFLAGS_SDK STREQUAL "ANDROID"))
308-
list(APPEND result -funwind-tables)
309-
endif()
310-
311306
if("${CFLAGS_SDK}" STREQUAL "ANDROID")
312307
swift_android_libcxx_include_paths(CFLAGS_CXX_INCLUDES)
313308
swift_android_include_for_arch("${CFLAGS_ARCH}" "${CFLAGS_ARCH}_INCLUDE")
@@ -932,17 +927,6 @@ function(_add_swift_library_single target name)
932927
endif()
933928
endif()
934929

935-
# Only build the modules for any arch listed in the *_MODULE_ARCHITECTURES.
936-
if(SWIFTLIB_SINGLE_SDK IN_LIST SWIFT_APPLE_PLATFORMS
937-
AND SWIFTLIB_SINGLE_ARCHITECTURE IN_LIST SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_MODULE_ARCHITECTURES)
938-
# Create dummy target to hook up the module target dependency.
939-
add_custom_target("${target}"
940-
DEPENDS
941-
"${swift_module_dependency_target}")
942-
943-
return()
944-
endif()
945-
946930
set(SWIFTLIB_INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS)
947931
foreach(object_library ${SWIFTLIB_SINGLE_INCORPORATE_OBJECT_LIBRARIES})
948932
list(APPEND SWIFTLIB_INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS
@@ -1862,13 +1846,8 @@ function(add_swift_target_library name)
18621846
list(APPEND swiftlib_link_flags_all "-Wl,-z,defs")
18631847
endif()
18641848

1865-
set(sdk_supported_archs
1866-
${SWIFT_SDK_${sdk}_ARCHITECTURES}
1867-
${SWIFT_SDK_${sdk}_MODULE_ARCHITECTURES})
1868-
list(REMOVE_DUPLICATES sdk_supported_archs)
1869-
18701849
# For each architecture supported by this SDK
1871-
foreach(arch ${sdk_supported_archs})
1850+
foreach(arch ${SWIFT_SDK_${sdk}_ARCHITECTURES})
18721851
# Configure variables for this subdirectory.
18731852
set(VARIANT_SUFFIX "-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")
18741853
set(VARIANT_NAME "${name}${VARIANT_SUFFIX}")
@@ -1990,38 +1969,11 @@ function(add_swift_target_library name)
19901969
endforeach()
19911970
endif()
19921971

1993-
if(arch IN_LIST SWIFT_SDK_${sdk}_ARCHITECTURES)
1994-
# Note this thin library.
1995-
list(APPEND THIN_INPUT_TARGETS ${VARIANT_NAME})
1996-
endif()
1972+
# Note this thin library.
1973+
list(APPEND THIN_INPUT_TARGETS ${VARIANT_NAME})
19971974
endif()
19981975
endforeach()
19991976

2000-
# Configure module-only targets
2001-
if(NOT SWIFT_SDK_${sdk}_ARCHITECTURES
2002-
AND SWIFT_SDK_${sdk}_MODULE_ARCHITECTURES)
2003-
set(_target "${name}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}")
2004-
2005-
# Create unified sdk target
2006-
add_custom_target("${_target}")
2007-
2008-
foreach(_arch ${SWIFT_SDK_${sdk}_MODULE_ARCHITECTURES})
2009-
set(_variant_suffix "-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${_arch}")
2010-
set(_module_variant_name "${name}-swiftmodule-${_variant_suffix}")
2011-
2012-
add_dependencies("${_target}" ${_module_variant_name})
2013-
2014-
# Add Swift standard library targets as dependencies to the top-level
2015-
# convenience target.
2016-
if(TARGET "swift-stdlib${_variant_suffix}")
2017-
add_dependencies("swift-stdlib${_variant_suffix}"
2018-
"${_target}")
2019-
endif()
2020-
endforeach()
2021-
2022-
return()
2023-
endif()
2024-
20251977
if(NOT SWIFTLIB_OBJECT_LIBRARY)
20261978
# Determine the name of the universal library.
20271979
if(SWIFTLIB_SHARED)
@@ -2112,35 +2064,12 @@ function(add_swift_target_library name)
21122064
endforeach()
21132065
endif()
21142066

2115-
swift_is_installing_component(
2116-
"${SWIFTLIB_INSTALL_IN_COMPONENT}"
2117-
is_installing)
2118-
2119-
# Add the arch-specific library targets to the global exports.
2120-
foreach(arch ${SWIFT_SDK_${sdk}_ARCHITECTURES})
2121-
set(_variant_name "${name}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")
2122-
if(NOT TARGET "${_variant_name}")
2123-
continue()
2124-
endif()
2125-
2126-
if(is_installing)
2127-
set_property(GLOBAL APPEND
2128-
PROPERTY SWIFT_EXPORTS ${_variant_name})
2129-
else()
2130-
set_property(GLOBAL APPEND
2131-
PROPERTY SWIFT_BUILDTREE_EXPORTS ${_variant_name})
2132-
endif()
2133-
endforeach()
2134-
2135-
# Add the swiftmodule-only targets to the lipo target depdencies.
2136-
foreach(arch ${SWIFT_SDK_${sdk}_MODULE_ARCHITECTURES})
2137-
set(_variant_name "${name}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")
2138-
if(NOT TARGET "${_variant_name}")
2139-
continue()
2140-
endif()
2141-
2142-
add_dependencies("${lipo_target}" "${_variant_name}")
2143-
endforeach()
2067+
swift_is_installing_component("${SWIFTLIB_INSTALL_IN_COMPONENT}" is_installing)
2068+
if(NOT is_installing)
2069+
set_property(GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${VARIANT_NAME})
2070+
else()
2071+
set_property(GLOBAL APPEND PROPERTY SWIFT_EXPORTS ${VARIANT_NAME})
2072+
endif()
21442073

21452074
# If we built static variants of the library, create a lipo target for
21462075
# them.

branches/rxwei-patch-1/cmake/modules/StandaloneOverlay.cmake

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,6 @@ option(SWIFT_ENABLE_PARSEABLE_MODULE_INTERFACES
6565
set(SWIFT_STDLIB_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
6666
"Build type for the Swift standard library and SDK overlays.")
6767

68-
set(SWIFT_DARWIN_SUPPORTED_ARCHS "" CACHE STRING
69-
"Semicolon-separated list of architectures to configure on Darwin platforms. \
70-
If left empty all default architectures are configured.")
71-
72-
set(SWIFT_DARWIN_MODULE_ARCHS "" CACHE STRING
73-
"Semicolon-separated list of architectures to configure Swift module-only \
74-
targets on Darwin platforms. These targets are in addition to the full \
75-
library targets.")
76-
77-
7868
# -----------------------------------------------------------------------------
7969
# Constants
8070

branches/rxwei-patch-1/cmake/modules/SwiftConfigureSDK.cmake

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ function(_report_sdk prefix)
5151
message(STATUS " Triple name: ${SWIFT_SDK_${prefix}_TRIPLE_NAME}")
5252
endif()
5353
message(STATUS " Architectures: ${SWIFT_SDK_${prefix}_ARCHITECTURES}")
54-
if(SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES)
55-
message(STATUS " Module Architectures: ${SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES}")
56-
endif()
5754
if(NOT prefix IN_LIST SWIFT_APPLE_PLATFORMS)
5855
if(SWIFT_BUILD_STDLIB)
5956
foreach(arch ${SWIFT_SDK_${prefix}_ARCHITECTURES})
@@ -144,30 +141,9 @@ macro(configure_sdk_darwin
144141
set(SWIFT_SDK_${prefix}_LIB_SUBDIR "${xcrun_name}")
145142
set(SWIFT_SDK_${prefix}_VERSION_MIN_NAME "${version_min_name}")
146143
set(SWIFT_SDK_${prefix}_TRIPLE_NAME "${triple_name}")
144+
set(SWIFT_SDK_${prefix}_ARCHITECTURES "${architectures}")
147145
set(SWIFT_SDK_${prefix}_OBJECT_FORMAT "MACHO")
148146

149-
set(SWIFT_SDK_${prefix}_ARCHITECTURES ${architectures})
150-
if(SWIFT_DARWIN_SUPPORTED_ARCHS)
151-
list_intersect(
152-
"${architectures}" # lhs
153-
"${SWIFT_DARWIN_SUPPORTED_ARCHS}" # rhs
154-
SWIFT_SDK_${prefix}_ARCHITECTURES) # result
155-
endif()
156-
157-
list_intersect(
158-
"${SWIFT_DARWIN_MODULE_ARCHS}" # lhs
159-
"${architectures}" # rhs
160-
SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES) # result
161-
162-
# Ensure the architectures and module-only architectures lists are mutually
163-
# exclusive.
164-
list_subtract(
165-
"${SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES}" # lhs
166-
"${SWIFT_SDK_${prefix}_ARCHITECTURES}" # rhs
167-
SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES) # result
168-
169-
# Configure variables for _all_ architectures even if we aren't "building"
170-
# them because they aren't supported.
171147
foreach(arch ${architectures})
172148
# On Darwin, all archs share the same SDK path.
173149
set(SWIFT_SDK_${prefix}_ARCH_${arch}_PATH "${SWIFT_SDK_${prefix}_PATH}")

branches/rxwei-patch-1/include/swift/AST/Decl.h

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ class alignas(1 << DeclAlignInBits) Decl {
553553
NumRequirementsInSignature : 16
554554
);
555555

556-
SWIFT_INLINE_BITFIELD(ClassDecl, NominalTypeDecl, 1+2+1+2+1+6+1+1+1+1,
556+
SWIFT_INLINE_BITFIELD(ClassDecl, NominalTypeDecl, 1+2+1+2+1+6+1+1+1,
557557
/// Whether this class requires all of its instance variables to
558558
/// have in-class initializers.
559559
RequiresStoredPropertyInits : 1,
@@ -581,11 +581,7 @@ class alignas(1 << DeclAlignInBits) Decl {
581581
AncestryComputed : 1,
582582

583583
HasMissingDesignatedInitializers : 1,
584-
HasMissingVTableEntries : 1,
585-
586-
/// Whether instances of this class are incompatible
587-
/// with weak and unowned references.
588-
IsIncompatibleWithWeakReferences : 1
584+
HasMissingVTableEntries : 1
589585
);
590586

591587
SWIFT_INLINE_BITFIELD(StructDecl, NominalTypeDecl, 1,
@@ -3864,17 +3860,6 @@ class ClassDecl final : public NominalTypeDecl {
38643860
Bits.ClassDecl.HasMissingVTableEntries = newValue;
38653861
}
38663862

3867-
/// Returns true if this class cannot be used with weak or unowned
3868-
/// references.
3869-
///
3870-
/// Note that this is true if this class or any of its ancestor classes
3871-
/// are marked incompatible.
3872-
bool isIncompatibleWithWeakReferences() const;
3873-
3874-
void setIsIncompatibleWithWeakReferences(bool newValue = true) {
3875-
Bits.ClassDecl.IsIncompatibleWithWeakReferences = newValue;
3876-
}
3877-
38783863
/// Find a method of a class that overrides a given method.
38793864
/// Return nullptr, if no such method exists.
38803865
AbstractFunctionDecl *findOverridingDecl(

branches/rxwei-patch-1/include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2538,12 +2538,6 @@ NOTE(decodable_suggest_overriding_init_here,none,
25382538
NOTE(codable_suggest_overriding_init_here,none,
25392539
"did you mean to override 'init(from:)' and 'encode(to:)'?", ())
25402540

2541-
NOTE(missing_member_type_conformance_prevents_synthesis, none,
2542-
"%select{associated value|stored property}0 type %1 does not conform to "
2543-
"protocol %2, preventing synthesized conformance "
2544-
"of %3 to %2",
2545-
(unsigned, Type, Type, Type))
2546-
25472541
// Dynamic Self
25482542
ERROR(dynamic_self_non_method,none,
25492543
"%select{global|local}0 function cannot return 'Self'", (bool))
@@ -3156,7 +3150,7 @@ ERROR(jump_out_of_defer,none,
31563150
(StringRef))
31573151

31583152
WARNING(defer_stmt_at_block_end,none,
3159-
"'defer' statement at end of scope always executes immediately; "
3153+
"'defer' statement before end of scope always executes immediately; "
31603154
"replace with 'do' statement to silence this warning", ())
31613155

31623156
ERROR(return_invalid_outside_func,none,
@@ -3571,9 +3565,6 @@ ERROR(invalid_ownership_protocol_type,none,
35713565
"%0 must not be applied to non-class-bound %1; "
35723566
"consider adding a protocol conformance that has a class bound",
35733567
(ReferenceOwnership, Type))
3574-
ERROR(invalid_ownership_incompatible_class,none,
3575-
"%0 is incompatible with %1 references",
3576-
(Type, ReferenceOwnership))
35773568
ERROR(invalid_ownership_with_optional,none,
35783569
"%0 variable cannot have optional type", (ReferenceOwnership))
35793570
ERROR(invalid_ownership_not_optional,none,

branches/rxwei-patch-1/include/swift/AST/Expr.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,6 @@ class ObjectLiteralExpr final
11351135
Expr *Arg;
11361136
Expr *SemanticExpr;
11371137
SourceLoc PoundLoc;
1138-
ConcreteDeclRef Initializer;
11391138

11401139
ObjectLiteralExpr(SourceLoc PoundLoc, LiteralKind LitKind,
11411140
Expr *Arg,
@@ -1196,15 +1195,6 @@ class ObjectLiteralExpr final
11961195

11971196
StringRef getLiteralKindPlainName() const;
11981197

1199-
/// Retrieve the initializer that will be used to construct the 'object'
1200-
/// literal from the result of the initializer.
1201-
ConcreteDeclRef getInitializer() const { return Initializer; }
1202-
1203-
/// Set the initializer that will be used to construct the 'object' literal.
1204-
void setInitializer(ConcreteDeclRef initializer) {
1205-
Initializer = initializer;
1206-
}
1207-
12081198
static bool classof(const Expr *E) {
12091199
return E->getKind() == ExprKind::ObjectLiteral;
12101200
}

branches/rxwei-patch-1/include/swift/AST/KnownIdentifiers.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ IDENTIFIER(Any)
3131
IDENTIFIER(ArrayLiteralElement)
3232
IDENTIFIER(atIndexedSubscript)
3333
IDENTIFIER_(bridgeToObjectiveC)
34-
IDENTIFIER(Change)
3534
IDENTIFIER_WITH_NAME(code_, "_code")
3635
IDENTIFIER(CodingKeys)
3736
IDENTIFIER(combine)

branches/rxwei-patch-1/include/swift/AST/KnownStdlibTypes.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ KNOWN_STDLIB_TYPE_DECL(Array, NominalTypeDecl, 1)
5454
KNOWN_STDLIB_TYPE_DECL(Set, NominalTypeDecl, 1)
5555
KNOWN_STDLIB_TYPE_DECL(Sequence, NominalTypeDecl, 1)
5656
KNOWN_STDLIB_TYPE_DECL(Dictionary, NominalTypeDecl, 2)
57-
KNOWN_STDLIB_TYPE_DECL(CollectionDifference, NominalTypeDecl, 1)
5857
KNOWN_STDLIB_TYPE_DECL(AnyHashable, NominalTypeDecl, 0)
5958
KNOWN_STDLIB_TYPE_DECL(MutableCollection, ProtocolDecl, 1)
6059
KNOWN_STDLIB_TYPE_DECL(Hasher, NominalTypeDecl, 0)

branches/rxwei-patch-1/include/swift/AST/ParameterList.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,7 @@ class alignas(ParamDecl *) ParameterList final :
9797

9898
const ParamDecl *operator[](unsigned i) const { return get(i); }
9999
ParamDecl *&operator[](unsigned i) { return get(i); }
100-
bool hasInternalParameter(StringRef prefix) const;
101-
100+
102101
/// Change the DeclContext of any contained parameters to the specified
103102
/// DeclContext.
104103
void setDeclContextOfParamDecls(DeclContext *DC);

branches/rxwei-patch-1/include/swift/AST/Types.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3172,7 +3172,6 @@ class GenericFunctionType final : public AnyFunctionType,
31723172
/// Substitute the given generic arguments into this generic
31733173
/// function type and return the resulting non-generic type.
31743174
FunctionType *substGenericArgs(SubstitutionMap subs);
3175-
FunctionType *substGenericArgs(llvm::function_ref<Type(Type)> substFn) const;
31763175

31773176
void Profile(llvm::FoldingSetNodeID &ID) {
31783177
Profile(ID, getGenericSignature(), getParams(), getResult(),

branches/rxwei-patch-1/include/swift/Option/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ def resource_dir : Separate<["-"], "resource-dir">,
807807

808808
def target : Separate<["-"], "target">,
809809
Flags<[FrontendOption, ModuleWrapOption, ModuleInterfaceOption]>,
810-
HelpText<"Generate code for the given target <triple>, such as x86_64-apple-macos10.9">, MetaVarName<"<triple>">;
810+
HelpText<"Generate code for the given target">;
811811
def target_legacy_spelling : Joined<["--"], "target=">,
812812
Flags<[FrontendOption]>, Alias<target>;
813813

branches/rxwei-patch-1/include/swift/Parse/Parser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ class Parser {
183183

184184
bool allowTopLevelCode() const;
185185

186-
const std::vector<Token> &getSplitTokens() const { return SplitTokens; }
186+
const std::vector<Token> &getSplitTokens() { return SplitTokens; }
187187

188188
void markSplitToken(tok Kind, StringRef Txt);
189189

branches/rxwei-patch-1/include/swift/SIL/SILBuilder.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1279,13 +1279,6 @@ class SILBuilder {
12791279
return createUncheckedEnumData(Loc, Operand, Element, EltType);
12801280
}
12811281

1282-
/// Return unchecked_enum_data %Operand, #Optional<T>.some.
1283-
SILValue emitExtractOptionalPayloadOperation(SILLocation Loc,
1284-
SILValue Operand) {
1285-
auto *Decl = F->getASTContext().getOptionalSomeDecl();
1286-
return createUncheckedEnumData(Loc, Operand, Decl);
1287-
}
1288-
12891282
UncheckedTakeEnumDataAddrInst *
12901283
createUncheckedTakeEnumDataAddr(SILLocation Loc, SILValue Operand,
12911284
EnumElementDecl *Element, SILType Ty) {

0 commit comments

Comments
 (0)