On DataLayout, omit the default of p:64:64:64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197397 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-12-16 17:15:29 +00:00
parent fe8eb63fcb
commit 7ef5520e8c
8 changed files with 11 additions and 23 deletions

View File

@@ -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.