r361365 - [PPC64] Fix PPC64TargetInfo ABI on clang side after D61950
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed May 22 02:26:47 PDT 2019
Author: maskray
Date: Wed May 22 02:26:46 2019
New Revision: 361365
URL: http://llvm.org/viewvc/llvm-project?rev=361365&view=rev
Log:
[PPC64] Fix PPC64TargetInfo ABI on clang side after D61950
Modified:
cfe/trunk/lib/Basic/Targets/PPC.h
Modified: cfe/trunk/lib/Basic/Targets/PPC.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets/PPC.h?rev=361365&r1=361364&r2=361365&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets/PPC.h (original)
+++ cfe/trunk/lib/Basic/Targets/PPC.h Wed May 22 02:26:46 2019
@@ -379,10 +379,11 @@ public:
if ((Triple.getArch() == llvm::Triple::ppc64le)) {
resetDataLayout("e-m:e-i64:64-n32:64");
+ ABI = "elfv2";
} else {
resetDataLayout("E-m:e-i64:64-n32:64");
+ ABI = Triple.getEnvironment() == llvm::Triple::ELFv2 ? "elfv2" : "elfv1";
}
- ABI = Triple.getEnvironment() == llvm::Triple::ELFv1 ? "elfv1" : "elfv2";
switch (Triple.getOS()) {
case llvm::Triple::FreeBSD:
More information about the cfe-commits
mailing list