forked from OSchip/llvm-project
Fix the data layout mangling specification for 'arm64-pc-win32-macho'
rdar://problem/70410504
This commit is contained in:
parent
724a0e53de
commit
d9258a21f0
|
@ -759,7 +759,9 @@ WindowsARM64TargetInfo::WindowsARM64TargetInfo(const llvm::Triple &Triple,
|
|||
}
|
||||
|
||||
void WindowsARM64TargetInfo::setDataLayout() {
|
||||
resetDataLayout("e-m:w-p:64:64-i32:32-i64:64-i128:128-n32:64-S128");
|
||||
resetDataLayout(Triple.isOSBinFormatMachO()
|
||||
? "e-m:o-i64:64-i128:128-n32:64-S128"
|
||||
: "e-m:w-p:64:64-i32:32-i64:64-i128:128-n32:64-S128");
|
||||
}
|
||||
|
||||
TargetInfo::BuiltinVaListKind
|
||||
|
|
|
@ -191,6 +191,10 @@
|
|||
// RUN: FileCheck %s -check-prefix=AARCH64-ILP32
|
||||
// AARCH64-ILP32: target datalayout = "e-m:o-p:32:32-i64:64-i128:128-n32:64-S128"
|
||||
|
||||
// RUN: %clang_cc1 -triple arm64-pc-win32-macho -o - -emit-llvm %s | \
|
||||
// RUN: FileCheck %s -check-prefix=AARCH64-WIN32-MACHO
|
||||
// AARCH64-WIN32-MACHO: target datalayout = "e-m:o-i64:64-i128:128-n32:64-S128"
|
||||
|
||||
// RUN: %clang_cc1 -triple thumb-unknown-gnueabi -o - -emit-llvm %s | \
|
||||
// RUN: FileCheck %s -check-prefix=THUMB
|
||||
// THUMB: target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
|
||||
|
|
Loading…
Reference in New Issue