[arm64e] Add Swift compiler support for arm64e pointer authentication

This commit is contained in:
Kuba Mracek
2020-02-27 16:10:31 -08:00
parent 45ba5cec05
commit 84c4864911
64 changed files with 3753 additions and 372 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 {