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 @@ -1626,6 +1626,9 @@ void AArch64leTargetInfo::setDataLayout() {
1626
1626
resetDataLayout (" e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-"
1627
1627
" n32:64-S128-Fn32" ,
1628
1628
" _" );
1629
+ } else if (getTriple ().isUEFI () && getTriple ().isOSBinFormatCOFF ()) {
1630
+ resetDataLayout (" e-m:w-p270:32:32-p271:32:32-p272:64:64-p:64:64-i32:32-"
1631
+ " i64:64-i128:128-n32:64-S128-Fn32" );
1629
1632
} else
1630
1633
resetDataLayout (" e-m:e-p270:32:32-p271:32:32-p272:64:64-i8:8:32-i16:16:32-"
1631
1634
" i64:64-i128:128-n32:64-S128-Fn32" );
Original file line number Diff line number Diff line change @@ -722,8 +722,8 @@ class LLVM_LIBRARY_VISIBILITY X86_64TargetInfo : public X86TargetInfo {
722
722
X86_64TargetInfo (const llvm::Triple &Triple, const TargetOptions &Opts)
723
723
: X86TargetInfo(Triple, Opts) {
724
724
const bool IsX32 = getTriple ().isX32 ();
725
- bool IsWinCOFF =
726
- getTriple (). isOSWindows () && getTriple ().isOSBinFormatCOFF ();
725
+ bool IsWinCOFF = ( getTriple (). isOSWindows () || getTriple (). isUEFI ()) &&
726
+ getTriple ().isOSBinFormatCOFF ();
727
727
LongWidth = LongAlign = PointerWidth = PointerAlign = IsX32 ? 32 : 64 ;
728
728
LongDoubleWidth = 128 ;
729
729
LongDoubleAlign = 128 ;
You can’t perform that action at this time.
0 commit comments