[llvm] [llvm] Use masm for UEFI (PR #132461)
Prabhuk via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 21 12:53:48 PDT 2025
https://github.com/Prabhuk created https://github.com/llvm/llvm-project/pull/132461
For UEFI targets use Microsoft masm.
>From 8eb73d02ac0b402a1a56e17a1a3dbdd4f31e5b21 Mon Sep 17 00:00:00 2001
From: prabhukr <prabhukr at google.com>
Date: Fri, 21 Mar 2025 19:52:01 +0000
Subject: [PATCH] [llvm] Use masm for UEFI
For UEFI targets use Microsoft masm.
---
llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
index ad94e306f339e..9d86f8eb91506 100644
--- a/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
+++ b/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp
@@ -444,7 +444,7 @@ static MCAsmInfo *createX86MCAsmInfo(const MCRegisterInfo &MRI,
// Force the use of an ELF container.
MAI = new X86ELFMCAsmInfo(TheTriple);
} else if (TheTriple.isWindowsMSVCEnvironment() ||
- TheTriple.isWindowsCoreCLREnvironment()) {
+ TheTriple.isWindowsCoreCLREnvironment() || TheTriple.isUEFI()) {
if (Options.getAssemblyLanguage().equals_insensitive("masm"))
MAI = new X86MCAsmInfoMicrosoftMASM(TheTriple);
else
More information about the llvm-commits
mailing list