summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-01-07 09:54:10 -0800
committerFangrui Song <maskray@google.com>2020-01-07 11:40:56 -0800
commit8edf759ca7e1ceadb8bd4c0701f08c48850c26e7 (patch)
treed3fb6401c81dd848e66b9b80208ab2a926d716b5 /clang/lib/Basic
parentfb6e80da446b94d42d484910ea28a82b4900f01f (diff)
downloadbcm5719-llvm-8edf759ca7e1ceadb8bd4c0701f08c48850c26e7.tar.gz
bcm5719-llvm-8edf759ca7e1ceadb8bd4c0701f08c48850c26e7.zip
[PowerPC][Triple] Use elfv2 on freebsd>=13 and linux-musl
Summary: Every powerpc64le platform uses elfv2. For powerpc64, the environments "elfv1" and "elfv2" were added for FreeBSD ELFv1->ELFv2 migration in D61950. FreeBSD developers have decided to use OS versions to select ABI, and no one is relying on the environments. Also use elfv2 on powerpc64-linux-musl. Users can always use -mabi=elfv1 and -mabi=elfv2 to override the default ABI. Reviewed By: adalava Differential Revision: https://reviews.llvm.org/D72352
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/Targets/PPC.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/Targets/PPC.h b/clang/lib/Basic/Targets/PPC.h
index 7c7307461f9..3076025fc5b 100644
--- a/clang/lib/Basic/Targets/PPC.h
+++ b/clang/lib/Basic/Targets/PPC.h
@@ -390,7 +390,7 @@ public:
ABI = "elfv2";
} else {
resetDataLayout("E-m:e-i64:64-n32:64");
- ABI = Triple.getEnvironment() == llvm::Triple::ELFv2 ? "elfv2" : "elfv1";
+ ABI = "elfv1";
}
if (Triple.getOS() == llvm::Triple::AIX)
OpenPOWER on IntegriCloud