From c2e60f52aee022c298b8cd7a34fa8cddbdd61fa9 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 17 Dec 2013 23:30:58 +0000 Subject: [PATCH] Add a 's' specifications to AArch64. This has no functionality change as clang adds explicit alignment info for byval arguments. The only difference is that now the clang produced DataLayout string for AArch64 is identical to the LLVM produced one. llvm-svn: 197538 --- clang/lib/Basic/Targets.cpp | 4 +--- clang/test/CodeGen/target-data.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index b1e5d556266d..3c7592f6a93d 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -3395,9 +3395,7 @@ public: LongDoubleWidth = LongDoubleAlign = 128; PointerWidth = PointerAlign = 64; SuitableAlign = 128; - DescriptionString = "e-" - "i64:64-i128:128-" - "n32:64-S128"; + DescriptionString = "e-i64:64-i128:128-s:32-n32:64-S128"; WCharType = UnsignedInt; LongDoubleFormat = &llvm::APFloat::IEEEquad; diff --git a/clang/test/CodeGen/target-data.c b/clang/test/CodeGen/target-data.c index e54727bf73c5..5be5a8c3d21c 100644 --- a/clang/test/CodeGen/target-data.c +++ b/clang/test/CodeGen/target-data.c @@ -106,7 +106,7 @@ // RUN: %clang_cc1 -triple aarch64-unknown -o - -emit-llvm %s | \ // RUN: FileCheck %s -check-prefix=AARCH64 -// AARCH64: target datalayout = "e-i64:64-i128:128-n32:64-S128" +// AARCH64: target datalayout = "e-i64:64-i128:128-s:32-n32:64-S128" // RUN: %clang_cc1 -triple thumb-unknown-gnueabi -o - -emit-llvm %s | \ // RUN: FileCheck %s -check-prefix=THUMB