From 4fb6e622fec390347c4afaaade36f87e2736edc6 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sun, 7 Apr 2019 19:25:06 -0300 Subject: [PATCH] llvm8: remove ppc64 patch that doesn't apply --- .../cfe/cfe-006-ppc64-musl-elfv2.patch | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 srcpkgs/llvm8/files/patches/cfe/cfe-006-ppc64-musl-elfv2.patch diff --git a/srcpkgs/llvm8/files/patches/cfe/cfe-006-ppc64-musl-elfv2.patch b/srcpkgs/llvm8/files/patches/cfe/cfe-006-ppc64-musl-elfv2.patch deleted file mode 100644 index fe190188cf8..00000000000 --- a/srcpkgs/llvm8/files/patches/cfe/cfe-006-ppc64-musl-elfv2.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- a/clang/lib/Basic/Targets/PPC.h -+++ b/clang/lib/Basic/Targets/PPC.h -@@ -358,7 +358,10 @@ public: - ABI = "elfv2"; - } else { - resetDataLayout("E-m:e-i64:64-n32:64"); -- ABI = "elfv1"; -+ if (Triple.getEnvironment() == llvm::Triple::Musl) -+ ABI = "elfv2"; -+ else -+ ABI = "elfv1"; - } - - switch (getTriple().getOS()) { -diff --git a/tools/clang/lib/Driver/ToolChains/Clang.cpp b/tools/clang/lib/Driver/ToolChains/Clang.cpp -index 8e9c4c6a..40817ec3 100644 ---- a/clang/lib/Driver/ToolChains/Clang.cpp -+++ b/clang/lib/Driver/ToolChains/Clang.cpp -@@ -1618,7 +1618,10 @@ void Clang::AddPPCTargetArgs(const ArgList &Args, - break; - } - -- ABIName = "elfv1"; -+ if (getToolChain().getTriple().getEnvironment() == llvm::Triple::Musl) -+ ABIName = "elfv2"; -+ else -+ ABIName = "elfv1"; - break; - } - case llvm::Triple::ppc64le: