Merge remote-tracking branch 'origin/master' into master-next

Conflicts:
	stdlib/public/Reflection/TypeRefBuilder.cpp
This commit is contained in:
Rintaro Ishizaki
2020-03-10 12:00:12 -07:00
433 changed files with 16317 additions and 2814 deletions

View File

@@ -46,11 +46,17 @@ void forEachTargetModuleBasename(const ASTContext &Ctx,
// FIXME: We used to use "major architecture" names for these files---the
// names checked in "#if arch(...)". Fall back to that name in the one case
// where it's different from what Swift 4.2 supported: 32-bit ARM platforms.
// where it's different from what Swift 4.2 supported:
// - 32-bit ARM platforms (formerly "arm")
// - arm64e (formerly shared with "arm64")
// We should be able to drop this once there's an Xcode that supports the
// new names.
if (Ctx.LangOpts.Target.getArch() == llvm::Triple::ArchType::arm)
body("arm");
else if (Ctx.LangOpts.Target.getSubArch() ==
llvm::Triple::SubArchType::AArch64SubArch_E) {
body("arm64");
}
}
enum class SearchPathKind {