diff options
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. |