Skip to content

Commit 6f841a0

Browse files
authored
---
yaml --- r: 341498 b: refs/heads/rxwei-patch-1 c: 35277b5 h: refs/heads/master
1 parent 4239318 commit 6f841a0

File tree

74 files changed

+634
-1040
lines changed

Some content is hidden

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

74 files changed

+634
-1040
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: 9f26fc7fe72a2d1ba53b06e97f46830f808e4be3
1018+
refs/heads/rxwei-patch-1: 35277b55a956a36e84a43313610272284d99a546
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: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -915,14 +915,11 @@ else()
915915
find_package(LibXml2)
916916
endif()
917917

918-
# You need libedit linked in order to check if you have el_wgets.
919-
cmake_push_check_state()
920-
list(APPEND CMAKE_REQUIRED_LIBRARIES "edit")
921-
check_symbol_exists(el_wgets "histedit.h" HAVE_EL_WGETS)
922-
if(HAVE_EL_WGETS)
923-
set(HAVE_UNICODE_LIBEDIT 1)
918+
if(LLVM_ENABLE_LIBEDIT)
919+
find_package(LibEdit REQUIRED)
920+
else()
921+
find_package(LibEdit)
924922
endif()
925-
cmake_pop_check_state()
926923

927924
check_symbol_exists(wait4 "sys/wait.h" HAVE_WAIT4)
928925

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#.rst:
2+
# FindLibEdit
3+
# -----------
4+
#
5+
# Find libedit library and headers
6+
#
7+
# The module defines the following variables:
8+
#
9+
# ::
10+
#
11+
# libedit_FOUND - true if libedit was found
12+
# libedit_INCLUDE_DIRS - include search path
13+
# libedit_LIBRARIES - libraries to link
14+
# libedit_VERSION - version number
15+
16+
if(libedit_INCLUDE_DIRS AND libedit_LIBRARIES)
17+
set(libedit_FOUND TRUE)
18+
else()
19+
find_package(PkgConfig QUIET)
20+
pkg_check_modules(PC_LIBEDIT QUIET libedit)
21+
22+
find_path(libedit_INCLUDE_DIRS
23+
NAMES
24+
histedit.h
25+
HINTS
26+
${PC_LIBEDIT_INCLUDEDIR}
27+
${PC_LIBEDIT_INCLUDE_DIRS}
28+
${CMAKE_INSTALL_FULL_INCLUDEDIR})
29+
find_library(libedit_LIBRARIES
30+
NAMES
31+
edit libedit
32+
HINTS
33+
${PC_LIBEDIT_LIBDIR}
34+
${PC_LIBEDIT_LIBRARY_DIRS}
35+
${CMAKE_INSTALL_FULL_LIBDIR})
36+
37+
if(libedit_INCLUDE_DIRS AND EXISTS "${libedit_INCLUDE_DIRS}/histedit.h")
38+
file(STRINGS "${libedit_INCLUDE_DIRS}/histedit.h"
39+
libedit_major_version_str
40+
REGEX "^#define[ \t]+LIBEDIT_MAJOR[ \t]+[0-9]+")
41+
string(REGEX REPLACE "^#define[ \t]+LIBEDIT_MAJOR[ \t]+([0-9]+)" "\\1"
42+
LIBEDIT_MAJOR_VERSION "${libedit_major_version_str}")
43+
44+
file(STRINGS "${libedit_INCLUDE_DIRS}/histedit.h"
45+
libedit_minor_version_str
46+
REGEX "^#define[ \t]+LIBEDIT_MINOR[ \t]+[0-9]+")
47+
string(REGEX REPLACE "^#define[ \t]+LIBEDIT_MINOR[ \t]+([0-9]+)" "\\1"
48+
LIBEDIT_MINOR_VERSION "${libedit_minor_version_str}")
49+
50+
set(libedit_VERSION_STRING "${libedit_major_version}.${libedit_minor_version}")
51+
endif()
52+
53+
include(FindPackageHandleStandardArgs)
54+
find_package_handle_standard_args(libedit
55+
REQUIRED_VARS
56+
libedit_INCLUDE_DIRS
57+
libedit_LIBRARIES
58+
VERSION_VAR
59+
libedit_VERSION_STRING)
60+
mark_as_advanced(libedit_INCLUDE_DIRS libedit_LIBRARIES)
61+
endif()
62+

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ namespace swift {
7070
class GenericSignature;
7171
class GenericTypeParamDecl;
7272
class GenericTypeParamType;
73-
class LazyResolver;
7473
class ModuleDecl;
7574
class EnumCaseDecl;
7675
class EnumElementDecl;
@@ -3956,10 +3955,7 @@ class ClassDecl final : public NominalTypeDecl {
39563955

39573956
/// Determine whether this class inherits the convenience initializers
39583957
/// from its superclass.
3959-
///
3960-
/// \param resolver Used to resolve the signatures of initializers, which is
3961-
/// required for name lookup.
3962-
bool inheritsSuperclassInitializers(LazyResolver *resolver);
3958+
bool inheritsSuperclassInitializers();
39633959

39643960
/// Marks that this class inherits convenience initializers from its
39653961
/// superclass.
@@ -4143,7 +4139,7 @@ class ProtocolDecl final : public NominalTypeDecl {
41434139

41444140
bool existentialConformsToSelfSlow();
41454141

4146-
bool existentialTypeSupportedSlow(LazyResolver *resolver);
4142+
bool existentialTypeSupportedSlow();
41474143

41484144
ArrayRef<ProtocolDecl *> getInheritedProtocolsSlow();
41494145

@@ -4269,12 +4265,12 @@ class ProtocolDecl final : public NominalTypeDecl {
42694265
/// conforming to this protocol. This is only permitted if the types of
42704266
/// all the members do not contain any associated types, and do not
42714267
/// contain 'Self' in 'parameter' or 'other' position.
4272-
bool existentialTypeSupported(LazyResolver *resolver) const {
4268+
bool existentialTypeSupported() const {
42734269
if (Bits.ProtocolDecl.ExistentialTypeSupportedValid)
42744270
return Bits.ProtocolDecl.ExistentialTypeSupported;
42754271

42764272
return const_cast<ProtocolDecl *>(this)
4277-
->existentialTypeSupportedSlow(resolver);
4273+
->existentialTypeSupportedSlow();
42784274
}
42794275

42804276
/// Explicitly set the existentialTypeSupported flag, without computing

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ WARNING(implicit_bridging_header_imported_from_module,none,
9191
"is deprecated and will be removed in a later version of Swift",
9292
(StringRef, Identifier))
9393

94+
WARNING(clang_vfs_overlay_is_ignored,none,
95+
"ignoring '-ivfsoverlay' options provided to '-Xcc' in favor of "
96+
"'-vfsoverlay'", ())
97+
9498
#ifndef DIAG_NO_UNDEF
9599
# if defined(DIAG)
96100
# undef DIAG

0 commit comments

Comments
 (0)