[PATCH] D89613: make the AsmPrinterHandler array public

Mikael Holmén via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 4 04:44:03 PST 2020


uabelho added a comment.

Hi!

Is this commit supposed to change the output from llc?

With

  llc -disable-debug-info-print=true -o - unwind-tables.opt.ll

on

  define i16 @main() nounwind {
  entry:
    ret i16 0
  }
  
  !llvm.dbg.cu = !{!0}
  !llvm.module.flags = !{!3, !4, !5}
  !llvm.ident = !{!6}
  
  !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 12.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly, enums: !2, splitDebugInlining: false, nameTableKind: None)
  !1 = !DIFile(filename: "unwind-tables.c", directory: "/tmp")
  !2 = !{}
  !3 = !{i32 7, !"Dwarf Version", i32 4}
  !4 = !{i32 2, !"Debug Info Version", i32 3}
  !5 = !{i32 1, !"wchar_size", i32 4}
  !6 = !{!"clang version 12.0.0"}

I now get

.cfi_startproc
and
	.cfi_endproc

in the output which I didn't before.

It seems like the behavior of -disable-debug-info-print=true has changed. Before -disable-debug-info-print=true would call MMI->setDebugInfoAvailability(false); in DwarfDebug::beginModule(), but that doesn't seem to happen anymore.

Is this expected?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89613/new/

https://reviews.llvm.org/D89613



More information about the llvm-commits mailing list