[clang] [clang] Fix UEFI Target info (PR #127290)
Tristan Ross via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 17 13:12:50 PDT 2025
================
@@ -835,16 +835,22 @@ class LLVM_LIBRARY_VISIBILITY UEFIX86_64TargetInfo
public:
UEFIX86_64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
: UEFITargetInfo<X86_64TargetInfo>(Triple, Opts) {
+ LongWidth = LongAlign = 32;
+ DoubleAlign = LongLongAlign = 64;
+ IntMaxType = SignedLongLong;
+ Int64Type = SignedLongLong;
+ SizeType = UnsignedLongLong;
+ PtrDiffType = SignedLongLong;
+ IntPtrType = SignedLongLong;
+ LongDoubleWidth = LongDoubleAlign = 64;
+ LongDoubleFormat = &llvm::APFloat::IEEEdouble();
----------------
RossComputerGuy wrote:
I've asked someone who does work quite often with EFI stuff and they don't know either. It sounds like it's up to the developer to handle it. It's possible it's not even allowed.
https://github.com/llvm/llvm-project/pull/127290
More information about the cfe-commits
mailing list