aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/ARM/ARMTargetMachine.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-12-12 17:43:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-12-12 17:43:37 +0000
commit720ae4f8850b7b33808e4f52ca689ef2cade4702 (patch)
treea40ccd8a85543a15555f9996a94284036a3f3961 /llvm/lib/Target/ARM/ARMTargetMachine.cpp
parentb73a31efe677df79997163cfb5f466e01c55236f (diff)
downloadllvm-720ae4f8850b7b33808e4f52ca689ef2cade4702.zip
llvm-720ae4f8850b7b33808e4f52ca689ef2cade4702.tar.gz
llvm-720ae4f8850b7b33808e4f52ca689ef2cade4702.tar.bz2
Simplify the datalayout string of ARM and AArch64.
No functionality change. Reviewed by Tim Northover. llvm-svn: 197172
Diffstat (limited to 'llvm/lib/Target/ARM/ARMTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMTargetMachine.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetMachine.cpp b/llvm/lib/Target/ARM/ARMTargetMachine.cpp
index 0808da4..d5cde41 100644
--- a/llvm/lib/Target/ARM/ARMTargetMachine.cpp
+++ b/llvm/lib/Target/ARM/ARMTargetMachine.cpp
@@ -75,9 +75,9 @@ static std::string computeDataLayout(ARMSubtarget &ST) {
// aligned s them to 32 bits, others to 64 bits. We always try to align to
// 64 bits.
if (ST.isAPCS_ABI())
- Ret += "-f64:32:64-i64:32:64";
+ Ret += "-f64:32:64";
else
- Ret += "-f64:64:64-i64:64:64";
+ Ret += "-i64:64:64";
// On thumb, i16,i18 and i1 have natural aligment requirements, but we try to
// align to 32.
@@ -89,7 +89,7 @@ static std::string computeDataLayout(ARMSubtarget &ST) {
if (ST.isAPCS_ABI())
Ret += "-v128:32:128-v64:32:64";
else
- Ret += "-v128:64:128-v64:64:64";
+ Ret += "-v128:64:128";
// An aggregate of size 0 is ABI aligned to 0.
// FIXME: explain better what this means.