File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1537,6 +1537,9 @@ void AArch64leTargetInfo::setDataLayout() {
1537
1537
resetDataLayout (" e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-"
1538
1538
" n32:64-S128-Fn32" ,
1539
1539
" _" );
1540
+ } else if (getTriple ().isUEFI () && getTriple ().isOSBinFormatCOFF ()) {
1541
+ resetDataLayout (" e-m:w-p270:32:32-p271:32:32-p272:64:64-p:64:64-i32:32-"
1542
+ " i64:64-i128:128-n32:64-S128-Fn32" );
1540
1543
} else
1541
1544
resetDataLayout (" e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-"
1542
1545
" i64:64-i128:128-n32:64-S128-Fn32" );
Original file line number Diff line number Diff line change @@ -713,8 +713,8 @@ class LLVM_LIBRARY_VISIBILITY X86_64TargetInfo : public X86TargetInfo {
713
713
X86_64TargetInfo (const llvm::Triple &Triple, const TargetOptions &Opts)
714
714
: X86TargetInfo(Triple, Opts) {
715
715
const bool IsX32 = getTriple ().isX32 ();
716
- bool IsWinCOFF =
717
- getTriple (). isOSWindows () && getTriple ().isOSBinFormatCOFF ();
716
+ bool IsWinCOFF = ( getTriple (). isOSWindows () || getTriple (). isUEFI ()) &&
717
+ getTriple ().isOSBinFormatCOFF ();
718
718
LongWidth = LongAlign = PointerWidth = PointerAlign = IsX32 ? 32 : 64 ;
719
719
LongDoubleWidth = 128 ;
720
720
LongDoubleAlign = 128 ;
You can’t perform that action at this time.
0 commit comments