[llvm] [llvm][AsmPrinter] CodeView for UEFI (PR #138359)

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Tue May 6 00:25:29 PDT 2025


================
@@ -560,7 +560,7 @@ bool AsmPrinter::doInitialization(Module &M) {
 
   if (MAI->doesSupportDebugInformation()) {
     bool EmitCodeView = M.getCodeViewFlag();
-    if (EmitCodeView && TM.getTargetTriple().isOSWindows())
+    if (EmitCodeView && TM.getTargetTriple().isOSWindowsOrUEFI())
----------------
petrhosek wrote:

```suggestion
    if (EmitCodeView && (TM.getTargetTriple().isOSWindows() || TM.getTargetTriple().isOSUEFI()))
```

https://github.com/llvm/llvm-project/pull/138359


More information about the llvm-commits mailing list