diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-16 17:15:29 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-12-16 17:15:29 +0000 |
commit | 8afbb28cea1ba1759da243a28b44159cb0156510 (patch) | |
tree | 0b21277279b8372df07d3bea39b6108d349714b4 /llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | |
parent | 76f4f3809d8ee81fcc2dcedfa82bd97e487a3c24 (diff) | |
download | llvm-8afbb28cea1ba1759da243a28b44159cb0156510.zip llvm-8afbb28cea1ba1759da243a28b44159cb0156510.tar.gz llvm-8afbb28cea1ba1759da243a28b44159cb0156510.tar.bz2 |
On DataLayout, omit the default of p:64:64:64.
llvm-svn: 197397
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCTargetMachine.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp index 561b5e6..25badb1 100644 --- a/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/llvm/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -38,10 +38,8 @@ static std::string getDataLayoutString(const PPCSubtarget &ST) { // PPC is big endian. std::string Ret = "E"; - // PPC64 has 64 bit pointers, PPC32 has 32 bit pointers. - if (ST.isPPC64()) - Ret += "-p:64:64"; - else + // PPC32 has 32 bit pointers. + if (!ST.isPPC64()) Ret += "-p:32:32"; // Note, the alignment values for f64 and i64 on ppc64 in Darwin |