[llvm] 04a23cb - [PowerPC] Remove unused MacOSX check
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 4 23:54:17 PST 2022
Author: Fangrui Song
Date: 2022-12-05T07:54:11Z
New Revision: 04a23cb2191f865c51fce087b9f3083ac17ae10e
URL: https://github.com/llvm/llvm-project/commit/04a23cb2191f865c51fce087b9f3083ac17ae10e
DIFF: https://github.com/llvm/llvm-project/commit/04a23cb2191f865c51fce087b9f3083ac17ae10e.diff
LOG: [PowerPC] Remove unused MacOSX check
PPC Darwin support was removed long ago.
Added:
Modified:
llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
index fd65794ff348a..4edbcb03cf177 100644
--- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
@@ -231,9 +231,6 @@ static PPCTargetMachine::PPCABI computeTargetABI(const Triple &TT,
assert(Options.MCOptions.getABIName().empty() &&
"Unknown target-abi option!");
- if (TT.isMacOSX())
- return PPCTargetMachine::PPC_ABI_UNKNOWN;
-
switch (TT.getArch()) {
case Triple::ppc64le:
return PPCTargetMachine::PPC_ABI_ELFv2;
More information about the llvm-commits
mailing list