Skip to content

Commit e73af62

Browse files
committed
---
yaml --- r: 343223 b: refs/heads/master-rebranch c: a7888f0 h: refs/heads/master i: 343221: f780987 343219: dab68d7 343215: dc0b954
1 parent 8c11bb5 commit e73af62

File tree

168 files changed

+4604
-2631
lines changed

Some content is hidden

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

168 files changed

+4604
-2631
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14551455
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14561456
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14571457
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1458-
refs/heads/master-rebranch: a7f36205ee9a1c450e80a81d156cdf2aa8017061
1458+
refs/heads/master-rebranch: a7888f0720d783925fb0084612fd4f0075afdfaf
14591459
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14601460
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14611461
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec

branches/master-rebranch/include/swift/AST/ASTContext.h

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ namespace swift {
112112

113113
enum class KnownProtocolKind : uint8_t;
114114

115-
namespace namelookup {
116-
class ImportCache;
117-
}
118-
119115
namespace syntax {
120116
class SyntaxArena;
121117
}
@@ -687,9 +683,7 @@ class ASTContext final {
687683
/// If there is no Clang module loader, returns a null pointer.
688684
/// The loader is owned by the AST context.
689685
ClangModuleLoader *getDWARFModuleLoader() const;
690-
691-
namelookup::ImportCache &getImportCache() const;
692-
686+
693687
/// Asks every module loader to verify the ASTs it has loaded.
694688
///
695689
/// Does nothing in non-asserts (NDEBUG) builds.

branches/master-rebranch/include/swift/AST/ASTNode.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ namespace swift {
3636
enum class DeclKind : uint8_t;
3737
enum class StmtKind;
3838

39-
struct ASTNode : public llvm::PointerUnion<Expr*, Stmt*, Decl*> {
39+
struct ASTNode : public llvm::PointerUnion3<Expr*, Stmt*, Decl*> {
4040
// Inherit the constructors from PointerUnion.
41-
using PointerUnion::PointerUnion;
42-
41+
using PointerUnion3::PointerUnion3;
42+
4343
SourceRange getSourceRange() const;
4444

4545
/// Return the location of the start of the statement.

branches/master-rebranch/include/swift/AST/Builtins.def

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,6 @@ BUILTIN_MISC_OPERATION(Strideof, "strideof", "n", Special)
418418
/// IsPOD has type T.Type -> Bool
419419
BUILTIN_MISC_OPERATION(IsPOD, "ispod", "n", Special)
420420

421-
/// IsConcrete has type (T.Type) -> Bool
422-
///
423-
/// If the meta type T is concrete, we can always transform this to `true` at
424-
/// any time in SIL. If it's generic, then we lower it to `false` right before
425-
/// IRGen in IRGenPrepare. This allows for the optimizer to specialize this at
426-
/// -O and eliminate conditional code.
427-
BUILTIN_MISC_OPERATION(IsConcrete, "isConcrete", "n", Special)
428-
429421
/// IsBitwiseTakable has type T.Type -> Bool
430422
BUILTIN_MISC_OPERATION(IsBitwiseTakable, "isbitwisetakable", "n", Special)
431423

branches/master-rebranch/include/swift/AST/Decl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4789,7 +4789,7 @@ class VarDecl : public AbstractStorageDecl {
47894789
};
47904790

47914791
protected:
4792-
PointerUnion<PatternBindingDecl *, Stmt *, VarDecl *> Parent;
4792+
PointerUnion3<PatternBindingDecl *, Stmt *, VarDecl *> Parent;
47934793

47944794
VarDecl(DeclKind kind, bool isStatic, Introducer introducer,
47954795
bool issCaptureList, SourceLoc nameLoc, Identifier name,

branches/master-rebranch/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

branches/master-rebranch/include/swift/AST/DiagnosticsModuleDiffer.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ ERROR(decl_new_witness_table_entry,none,"%0 now requires %select{|no}1 new witne
9696

9797
ERROR(new_decl_without_intro,none,"%0 is a new API without @available attribute", (StringRef))
9898

99-
ERROR(objc_name_change,none,"%0 has ObjC name change from %1 to %2", (StringRef, StringRef, StringRef))
100-
10199
#ifndef DIAG_NO_UNDEF
102100
# if defined(DIAG)
103101
# undef DIAG

branches/master-rebranch/include/swift/AST/GenericSignatureBuilder.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ class GenericSignatureBuilder {
9292
class ResolvedType;
9393

9494
using UnresolvedRequirementRHS =
95-
llvm::PointerUnion<Type, PotentialArchetype *, LayoutConstraint>;
95+
llvm::PointerUnion3<Type, PotentialArchetype *, LayoutConstraint>;
9696

9797
using RequirementRHS =
98-
llvm::PointerUnion<Type, PotentialArchetype *, LayoutConstraint>;
98+
llvm::PointerUnion3<Type, PotentialArchetype *, LayoutConstraint>;
9999

100100
/// The location of a requirement as written somewhere in the source.
101101
typedef llvm::PointerUnion<const TypeRepr *, const RequirementRepr *>
@@ -1374,8 +1374,8 @@ class GenericSignatureBuilder::FloatingRequirementSource {
13741374
} kind;
13751375

13761376
using Storage =
1377-
llvm::PointerUnion<const RequirementSource *, const TypeRepr *,
1378-
const RequirementRepr *>;
1377+
llvm::PointerUnion3<const RequirementSource *, const TypeRepr *,
1378+
const RequirementRepr *>;
13791379

13801380
Storage storage;
13811381

branches/master-rebranch/include/swift/AST/ImportCache.h

Lines changed: 0 additions & 191 deletions
This file was deleted.

branches/master-rebranch/include/swift/AST/ModuleLoader.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
#include "llvm/ADT/SmallSet.h"
2525
#include "llvm/ADT/TinyPtrVector.h"
2626

27-
namespace llvm {
28-
class FileCollector;
29-
}
30-
3127
namespace clang {
3228
class DependencyCollector;
3329
}
@@ -58,9 +54,8 @@ enum class Bridgeability : unsigned {
5854
class DependencyTracker {
5955
std::shared_ptr<clang::DependencyCollector> clangCollector;
6056
public:
61-
explicit DependencyTracker(
62-
bool TrackSystemDeps,
63-
std::shared_ptr<llvm::FileCollector> FileCollector = {});
57+
58+
explicit DependencyTracker(bool TrackSystemDeps);
6459

6560
/// Adds a file as a dependency.
6661
///

branches/master-rebranch/include/swift/AST/ModuleNameLookup.h

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,24 @@ enum class ResolutionKind {
4242
TypesOnly
4343
};
4444

45-
/// Performs a lookup into the given module and it's imports.
46-
///
47-
/// If 'moduleOrFile' is a ModuleDecl, we search the module and it's
48-
/// public imports. If 'moduleOrFile' is a SourceFile, we search the
49-
/// file's parent module, the module's public imports, and the source
50-
/// file's private imports.
45+
/// Performs a lookup into the given module and, if necessary, its
46+
/// reexports, observing proper shadowing rules.
5147
///
52-
/// \param moduleOrFile The module or file unit whose imports to search.
48+
/// \param module The module that will contain the name.
49+
/// \param accessPath The import scope on \p module.
5350
/// \param name The name to look up.
5451
/// \param[out] decls Any found decls will be added to this vector.
5552
/// \param lookupKind Whether this lookup is qualified or unqualified.
5653
/// \param resolutionKind What sort of decl is expected.
5754
/// \param moduleScopeContext The top-level context from which the lookup is
5855
/// being performed, for checking access. This must be either a
5956
/// FileUnit or a Module.
60-
void lookupInModule(const DeclContext *moduleOrFile,
57+
/// \param extraImports Private imports to include in this search.
58+
void lookupInModule(ModuleDecl *module, ModuleDecl::AccessPathTy accessPath,
6159
DeclName name, SmallVectorImpl<ValueDecl *> &decls,
6260
NLKind lookupKind, ResolutionKind resolutionKind,
63-
const DeclContext *moduleScopeContext);
61+
const DeclContext *moduleScopeContext,
62+
ArrayRef<ModuleDecl::ImportedModule> extraImports = {});
6463

6564
template <typename Fn>
6665
void forAllVisibleModules(const DeclContext *DC, const Fn &fn) {
@@ -75,12 +74,12 @@ void forAllVisibleModules(const DeclContext *DC, const Fn &fn) {
7574
/// Performs a qualified lookup into the given module and, if necessary, its
7675
/// reexports, observing proper shadowing rules.
7776
void
78-
lookupVisibleDeclsInModule(const DeclContext *moduleOrFile,
79-
ModuleDecl::AccessPathTy accessPath,
77+
lookupVisibleDeclsInModule(ModuleDecl *M, ModuleDecl::AccessPathTy accessPath,
8078
SmallVectorImpl<ValueDecl *> &decls,
8179
NLKind lookupKind,
8280
ResolutionKind resolutionKind,
83-
const DeclContext *moduleScopeContext);
81+
const DeclContext *moduleScopeContext,
82+
ArrayRef<ModuleDecl::ImportedModule> extraImports = {});
8483

8584
} // end namespace namelookup
8685

branches/master-rebranch/include/swift/AST/NameLookup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,11 +378,11 @@ bool removeOverriddenDecls(SmallVectorImpl<ValueDecl*> &decls);
378378
/// other declarations in that set.
379379
///
380380
/// \param decls The set of declarations being considered.
381-
/// \param dc The DeclContext from which the lookup was performed.
381+
/// \param curModule The current module.
382382
///
383383
/// \returns true if any shadowed declarations were removed.
384384
bool removeShadowedDecls(SmallVectorImpl<ValueDecl*> &decls,
385-
const DeclContext *dc);
385+
const ModuleDecl *curModule);
386386

387387
/// Finds decls visible in the given context and feeds them to the given
388388
/// VisibleDeclConsumer. If the current DeclContext is nested in a function,

0 commit comments

Comments
 (0)