OSDN Git Service

DebugInfo: Split DWARF + gmlt + no-split-dwarf-inlining shouldn't emit anything to...
authorDavid Blaikie <dblaikie@gmail.com>
Tue, 12 Feb 2019 00:00:38 +0000 (00:00 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Tue, 12 Feb 2019 00:00:38 +0000 (00:00 +0000)
commit49124bf7453a000cad0c3f34a0a51165b0c002e6
tree67cae04eac03a510281e70d70bdfd66286097419
parentfa1c1f7304a203be965f16fe8ba6d74d0ae46bf4
DebugInfo: Split DWARF + gmlt + no-split-dwarf-inlining shouldn't emit anything to the .dwo file

This configuration (due to r349207) was intended not to emit any DWO CU,
but a degenerate CU was still being emitted - containing a header and a
DW_TAG_compile_unit with no attributes.

Under that situation, emit nothing to the .dwo file. (since this is a
dynamic property of the input the .dwo file is still emitted, just with
nothing in it (so a valid, but empty, ELF file) - if some other CU
didn't satisfy this criteria, its DWO CU would still go there, etc)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353771 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfFile.cpp
test/DebugInfo/X86/gmlt-no-split-dwarf-inlining-empty.ll [new file with mode: 0644]