summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2016-07-07 20:02:18 +0000
committerChad Rosier <mcrosier@codeaurora.org>2016-07-07 20:02:18 +0000
commit112d0e996bb833b8c7355947043bfc79075455f9 (patch)
tree2b3613facf02d48cc27cadc872cf69eac82d216e /llvm/lib/Target
parent917e744ea66bb1b9556fc744cc11efe6acf5c1e2 (diff)
downloadbcm5719-llvm-112d0e996bb833b8c7355947043bfc79075455f9.tar.gz
bcm5719-llvm-112d0e996bb833b8c7355947043bfc79075455f9.zip
[AArch64] Change the preferred alignment for char and short to word alignment.
The commit reinstates r273279, which was informally approved. Original Review: http://reviews.llvm.org/D21414 This reverts commit ca632c91aaa7cafc50942f890c49f727a046ace1. llvm-svn: 274790
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AArch64/AArch64TargetMachine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
index 9237bc03f4a..0b6345ff801 100644
--- a/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+++ b/llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
@@ -133,8 +133,8 @@ static std::string computeDataLayout(const Triple &TT, bool LittleEndian) {
if (TT.isOSBinFormatMachO())
return "e-m:o-i64:64-i128:128-n32:64-S128";
if (LittleEndian)
- return "e-m:e-i64:64-i128:128-n32:64-S128";
- return "E-m:e-i64:64-i128:128-n32:64-S128";
+ return "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128";
+ return "E-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128";
}
// Helper function to set up the defaults for reciprocals.
OpenPOWER on IntegriCloud