Skip to content

Commit c2e60f5

Browse files
committed
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
1 parent 8fbec67 commit c2e60f5

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

clang/lib/Basic/Targets.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3395,9 +3395,7 @@ class AArch64TargetInfo : public TargetInfo {
33953395
LongDoubleWidth = LongDoubleAlign = 128;
33963396
PointerWidth = PointerAlign = 64;
33973397
SuitableAlign = 128;
3398-
DescriptionString = "e-"
3399-
"i64:64-i128:128-"
3400-
"n32:64-S128";
3398+
DescriptionString = "e-i64:64-i128:128-s:32-n32:64-S128";
34013399

34023400
WCharType = UnsignedInt;
34033401
LongDoubleFormat = &llvm::APFloat::IEEEquad;

clang/test/CodeGen/target-data.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106

107107
// RUN: %clang_cc1 -triple aarch64-unknown -o - -emit-llvm %s | \
108108
// RUN: FileCheck %s -check-prefix=AARCH64
109-
// AARCH64: target datalayout = "e-i64:64-i128:128-n32:64-S128"
109+
// AARCH64: target datalayout = "e-i64:64-i128:128-s:32-n32:64-S128"
110110

111111
// RUN: %clang_cc1 -triple thumb-unknown-gnueabi -o - -emit-llvm %s | \
112112
// RUN: FileCheck %s -check-prefix=THUMB

0 commit comments

Comments
 (0)