[llvm] 65df10f - [OpenBSD] Use cortex-a8 as default CPU for ARMv7
Brad Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 8 21:05:58 PDT 2021
Author: Brad Smith
Date: 2021-10-08T23:57:40-04:00
New Revision: 65df10f3cd66abeab848990871885f33a4f980ac
URL: https://github.com/llvm/llvm-project/commit/65df10f3cd66abeab848990871885f33a4f980ac
DIFF: https://github.com/llvm/llvm-project/commit/65df10f3cd66abeab848990871885f33a4f980ac.diff
LOG: [OpenBSD] Use cortex-a8 as default CPU for ARMv7
Added:
Modified:
llvm/lib/Support/Triple.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 88311546354b..94ce81d8f76b 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -1709,6 +1709,7 @@ StringRef Triple::getARMCPUForArch(StringRef MArch) const {
switch (getOS()) {
case llvm::Triple::FreeBSD:
case llvm::Triple::NetBSD:
+ case llvm::Triple::OpenBSD:
if (!MArch.empty() && MArch == "v6")
return "arm1176jzf-s";
if (!MArch.empty() && MArch == "v7")
More information about the llvm-commits
mailing list