File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -561,7 +561,8 @@ bool AsmPrinter::doInitialization(Module &M) {
561
561
562
562
if (MAI->doesSupportDebugInformation ()) {
563
563
bool EmitCodeView = M.getCodeViewFlag ();
564
- if (EmitCodeView && TM.getTargetTriple ().isOSWindows ())
564
+ if (EmitCodeView &&
565
+ (TM.getTargetTriple ().isOSWindows () || TM.getTargetTriple ().isUEFI ()))
565
566
Handlers.push_back (std::make_unique<CodeViewDebug>(this ));
566
567
if (!EmitCodeView || M.getDwarfVersion ()) {
567
568
if (hasDebugInfo ()) {
Original file line number Diff line number Diff line change 2
2
; RUN: llc -mcpu=core2 -mtriple=i686-pc-win32 -o - -O0 < %s | llvm-mc -triple=i686-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview - | FileCheck --check-prefix=OBJ32 %s
3
3
; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -O0 < %s | FileCheck --check-prefix=X64 %s
4
4
; RUN: llc -mcpu=core2 -mtriple=x86_64-pc-win32 -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview - | FileCheck --check-prefix=OBJ64 %s
5
+ ; RUN: llc -mcpu=core2 -mtriple=x86_64-uefi -O0 < %s | FileCheck --check-prefix=X64 %s
6
+ ; RUN: llc -mcpu=core2 -mtriple=x86_64-uefi -o - -O0 < %s | llvm-mc -triple=x86_64-pc-win32 -filetype=obj | llvm-readobj -S --sr --codeview - | FileCheck --check-prefix=OBJ64 %s
5
7
6
8
; This LL file was generated by running clang on the following code:
7
9
; D:\asm.c:
You can’t perform that action at this time.
0 commit comments