summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc/SparcTargetMachine.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-16 18:01:51 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-16 18:01:51 +0000
commitbccb9d45ad1e4b84258b3ba4ec6d1c1e8f633bb1 (patch)
tree4cb8c90da3e20796f4fa076b5e3bdb974554ac53 /llvm/lib/Target/Sparc/SparcTargetMachine.cpp
parentef9a766555ca102fd5f1f8e6e3dcf01b66b5de16 (diff)
downloadbcm5719-llvm-bccb9d45ad1e4b84258b3ba4ec6d1c1e8f633bb1.tar.gz
bcm5719-llvm-bccb9d45ad1e4b84258b3ba4ec6d1c1e8f633bb1.zip
The preferred alignment defaults to the abi alignment. Omit if it is the same.
llvm-svn: 197400
Diffstat (limited to 'llvm/lib/Target/Sparc/SparcTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/Sparc/SparcTargetMachine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/SparcTargetMachine.cpp b/llvm/lib/Target/Sparc/SparcTargetMachine.cpp
index 7324e99af91..172bb66b7c8 100644
--- a/llvm/lib/Target/Sparc/SparcTargetMachine.cpp
+++ b/llvm/lib/Target/Sparc/SparcTargetMachine.cpp
@@ -29,17 +29,17 @@ static std::string computeDataLayout(const SparcSubtarget &ST) {
// Some ABIs have 32bit pointers.
if (!ST.is64Bit())
- Ret += "-p:32:32:32";
+ Ret += "-p:32:32";
// Alignments for 64 bit integers.
- Ret += "-i64:64:64";
+ Ret += "-i64: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 += "-n32:64";
else
- Ret += "-f128:64:64-n32";
+ Ret += "-f128:64-n32";
return Ret;
}
OpenPOWER on IntegriCloud