aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2023-10-12 23:45:10 +0000
committerBrooks Davis <brooks@FreeBSD.org>2023-10-12 23:45:10 +0000
commit2295fcc1d4f02081c88b85d02e7b826e17adf43d (patch)
treedfea684cde15ccec6fc0ddce23fa396883442fb9
parentc0a8cbbb08f3cd2e4a8ed62567cf9a5f3f82e937 (diff)
downloadports-2295fcc1d4f02081c88b85d02e7b826e17adf43d.tar.gz
ports-2295fcc1d4f02081c88b85d02e7b826e17adf43d.zip
devel/llvm17: remove obsolete powerpc patch
The lines immediatly below the inserted code do the same thing with more elegance. Technically this changes the package contents, but there is no functional change so don't make everyone build with a PORTREVSION bump. We'll do that soon enough when 17.0.3 comes out. Reported by: Brad Smith <brad@comstyle.com>
-rw-r--r--devel/llvm17/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/devel/llvm17/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp b/devel/llvm17/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
deleted file mode 100644
index ff0dba234b50..000000000000
--- a/devel/llvm17/files/patch-lib_Target_PowerPC_PPCTargetMachine.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
---- llvm/lib/Target/PowerPC/PPCTargetMachine.cpp.orig 2019-07-04 07:43:51 UTC
-+++ llvm/lib/Target/PowerPC/PPCTargetMachine.cpp
-@@ -209,6 +209,20 @@ static PPCTargetMachine::PPCABI computeTargetABI(const
- if (TT.isMacOSX())
- return PPCTargetMachine::PPC_ABI_UNKNOWN;
-
-+ if (TT.isOSFreeBSD()) {
-+ switch (TT.getArch()) {
-+ case Triple::ppc64le:
-+ case Triple::ppc64:
-+ if (TT.getOSMajorVersion() >= 13)
-+ return PPCTargetMachine::PPC_ABI_ELFv2;
-+ else
-+ return PPCTargetMachine::PPC_ABI_ELFv1;
-+ case Triple::ppc:
-+ default:
-+ return PPCTargetMachine::PPC_ABI_UNKNOWN;
-+ }
-+ }
-+
- switch (TT.getArch()) {
- case Triple::ppc64le:
- return PPCTargetMachine::PPC_ABI_ELFv2;