[PATCH] D123931: MachineModuleInfo: Don't allow dynamically setting DbgInfoAvailable

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 18 06:52:55 PDT 2022


arsenm created this revision.
arsenm added reviewers: debug-info, rnk.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

This can be set up front, and used only as a cache. This avoids a
field that looks like it requires MIR serialization.

      

I believe this fixes 2 bugs for CodeView. First, this addresses a
FIXME that the flag -diable-debug-info-print only works with
DWARF. Second, it fixes emitting debug info with emissionKind NoDebug.


https://reviews.llvm.org/D123931

Files:
  llvm/include/llvm/CodeGen/MachineModuleInfo.h
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
  llvm/lib/CodeGen/MachineModuleInfo.cpp
  llvm/test/CodeGen/X86/disable-debug-info-print-codeview.ll
  llvm/test/DebugInfo/COFF/emission-kind-no-debug.ll
  llvm/test/DebugInfo/COFF/language.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123931.423372.patch
Type: text/x-patch
Size: 6986 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220418/c65e568f/attachment.bin>


More information about the llvm-commits mailing list