-
Notifications
You must be signed in to change notification settings - Fork 13.3k
[llvm] Use masm for UEFI #132461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[llvm] Use masm for UEFI #132461
Conversation
For UEFI targets use Microsoft masm.
@llvm/pr-subscribers-backend-x86 Author: Prabhuk (OOO till April 2nd Week) (Prabhuk) ChangesFor UEFI targets use Microsoft masm. Full diff: https://github.com/llvm/llvm-project/pull/132461.diff 1 Files Affected:
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
|
Can you remove the second UEFI case? llvm-project/llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp Lines 455 to 457 in 8eb73d0
|
In `X86MCTargetDesc.cpp` while fixing the handling of UEFI target in the `createX86MCAsmInfo` function (llvm#132461), the previous incorrect handling of isUEFI was not removed. This patch cleans up that case.
In `X86MCTargetDesc.cpp` while fixing the handling of UEFI target in the `createX86MCAsmInfo` function (#132461), the previous incorrect handling of isUEFI was not removed. This patch cleans up that case.
Landed this cleanup as an NFC here: #136593 |
For UEFI targets use Microsoft masm.