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/Sparc/SparcTargetMachine.cpp | |
parent | 76f4f3809d8ee81fcc2dcedfa82bd97e487a3c24 (diff) | |
download | bcm5719-llvm-8afbb28cea1ba1759da243a28b44159cb0156510.tar.gz bcm5719-llvm-8afbb28cea1ba1759da243a28b44159cb0156510.zip |
On DataLayout, omit the default of p:64:64:64.
llvm-svn: 197397
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/Sparc/SparcTargetMachine.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/Sparc/SparcTargetMachine.cpp b/llvm/lib/Target/Sparc/SparcTargetMachine.cpp index 36d2f6f778d..7324e99af91 100644 --- a/llvm/lib/Target/Sparc/SparcTargetMachine.cpp +++ b/llvm/lib/Target/Sparc/SparcTargetMachine.cpp @@ -27,10 +27,8 @@ static std::string computeDataLayout(const SparcSubtarget &ST) { // Sparc is big endian. std::string Ret = "E"; - // V9 has 64 bit pointers, others have 32bit pointers. - if (ST.is64Bit()) - Ret += "-p:64:64:64"; - else + // Some ABIs have 32bit pointers. + if (!ST.is64Bit()) Ret += "-p:32:32:32"; // Alignments for 64 bit integers. |