aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorDaniel Thornburgh <dthorn@google.com>2023-03-14 13:44:07 -0700
committerDaniel Thornburgh <dthorn@google.com>2023-03-14 13:46:21 -0700
commitd505d20a62f4838d8ecb9385af8b8ccce9db67da (patch)
treef27edb9240a775765e3b36632e18409d541cec22 /clang/lib/CodeGen/TargetInfo.cpp
parentfbca61c46612a6377b7d7cf5b56573df3c6759e2 (diff)
downloadllvm-d505d20a62f4838d8ecb9385af8b8ccce9db67da.zip
llvm-d505d20a62f4838d8ecb9385af8b8ccce9db67da.tar.gz
llvm-d505d20a62f4838d8ecb9385af8b8ccce9db67da.tar.bz2
Revert "[LLVM][OHOS] Clang toolchain and targets"
This change had tests that break whenever LLVM_ENABLE_LINKER_BUILD_ID is set, as is the case in the Fuchsia target. This reverts commits: f81317a54586dbcef0c14cf512a0770e8ecaab3d 72474afa27570a0a1307f3260f0187b703aa6d84
Diffstat (limited to 'clang/lib/CodeGen/TargetInfo.cpp')
-rw-r--r--clang/lib/CodeGen/TargetInfo.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/clang/lib/CodeGen/TargetInfo.cpp b/clang/lib/CodeGen/TargetInfo.cpp
index 39e64a1..ba7a51c 100644
--- a/clang/lib/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CodeGen/TargetInfo.cpp
@@ -236,10 +236,6 @@ const CodeGenOptions &ABIInfo::getCodeGenOpts() const {
bool ABIInfo::isAndroid() const { return getTarget().getTriple().isAndroid(); }
-bool ABIInfo::isOHOSFamily() const {
- return getTarget().getTriple().isOHOSFamily();
-}
-
bool ABIInfo::isHomogeneousAggregateBaseType(QualType Ty) const {
return false;
}
@@ -5737,7 +5733,7 @@ ABIArgInfo AArch64ABIInfo::coerceIllegalVector(QualType Ty) const {
uint64_t Size = getContext().getTypeSize(Ty);
// Android promotes <2 x i8> to i16, not i32
- if ((isAndroid() || isOHOSFamily()) && (Size <= 16)) {
+ if (isAndroid() && (Size <= 16)) {
llvm::Type *ResType = llvm::Type::getInt16Ty(getVMContext());
return ABIArgInfo::getDirect(ResType);
}
@@ -6344,7 +6340,7 @@ public:
case llvm::Triple::MuslEABIHF:
return true;
default:
- return getTarget().getTriple().isOHOSFamily();
+ return false;
}
}