Assume defaults to produce smaller datalayout strings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197249 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-12-13 17:56:11 +00:00
parent 7b3aa0356d
commit 48c2927021
6 changed files with 10 additions and 26 deletions

View File

@ -33,13 +33,13 @@ static std::string computeDataLayout(const SparcSubtarget &ST) {
else
Ret += "-p:32:32:32";
// Alignments for 64 bit integers and doubles.
Ret += "-i64:64:64-f64:64:64";
// Alignments for 64 bit integers.
Ret += "-i64:64:64";
// On SparcV9 128 floats are aligned to 128 bits, on others only to 64.
// On SparcV9 registers can hold 64 or 32 bits, on others only 32.
if (ST.is64Bit())
Ret += "-f128:128:128-n32:64";
Ret += "-n32:64";
else
Ret += "-f128:64:64-n32";