forked from OSchip/llvm-project
[PPC64] Fix PPC64TargetInfo ABI on clang side after D61950
llvm-svn: 361365
This commit is contained in:
parent
ecf6eb515f
commit
f69c992485
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue