diff options
author | Prabhu Rajasekaran <prabhukr@google.com> | 2025-04-30 10:07:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-30 10:07:57 -0700 |
commit | 6274cdb9a6714908c8a4e30d2ef0bf22a6949065 (patch) | |
tree | e101b295ac7a1d67080987dfa62bf29fb39039b4 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 8e4dd21e6362ca161b7fda4fe7c5fa20f72ffab2 (diff) | |
download | llvm-6274cdb9a6714908c8a4e30d2ef0bf22a6949065.zip llvm-6274cdb9a6714908c8a4e30d2ef0bf22a6949065.tar.gz llvm-6274cdb9a6714908c8a4e30d2ef0bf22a6949065.tar.bz2 |
[clang] Fix UEFI Target info (#127290)
For X64 UEFI targets set appropriate integer type sizes, and relevant
ABI information.
---------
Co-authored-by: Petr Hosek <phosek@google.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index f0ce462..242eaec 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -267,6 +267,7 @@ createTargetCodeGenInfo(CodeGenModule &CGM) { : X86AVXABILevel::None); switch (Triple.getOS()) { + case llvm::Triple::UEFI: case llvm::Triple::Win32: return createWinX86_64TargetCodeGenInfo(CGM, AVXLevel); default: |