Files
llvm/lib/CodeGen/AsmPrinter
Matthias Braun 08b668a1c4 MachineModuleInfo: Initialize DbgInfoAvailable depending on debug_cus existing
Before this patch DbgInfoAvailable was set to true in
DwarfDebug::beginModule() or CodeViewDebug::CodeViewDebug(). This made
MIR testing weird since passes would suddenly stop dealing with debug
info just because we stopped the pipeline before the debug printers.

This patch changes the logic to initialize DbgInfoAvailable based on the
fact that debug_compile_units exist in the llvm Module. The debug
printers may then override it with false in case of debug printing being
disabled.

Differential Revision: https://reviews.llvm.org/D53885

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345740 91177308-0d34-0410-b5e6-96231b3b80d8
2018-10-31 17:18:41 +00:00
..
2018-09-28 17:01:50 +00:00
2018-05-14 12:53:11 +00:00
2018-07-18 09:07:54 +00:00
2018-03-29 23:32:54 +00:00
2018-03-29 23:32:54 +00:00