DebugInfo: Omit an empty CU when a subprogram was moved into its use
authorMehdi Amini <joker.eph@gmail.com>
Mon, 29 May 2017 06:25:30 +0000 (06:25 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 29 May 2017 06:25:30 +0000 (06:25 +0000)
commit418120556398c01550d42500d56e6d328290185b
treec83d4ff9bb8cd9419db26729530bd8c34bf11e56
parent8cf785f6b19cf7a3dac9cda4fd386a876c0f108d
DebugInfo: Omit an empty CU when a subprogram was moved into its use

When the only use of a CU is for a subprogram that's only emitted into
the using CU (to avoid cross-CU references in DWO files), avoid creating
that CU at all.

Reapply of r304111 after adding a triple to the test and moving it
to the X86 directory.

llvm-svn: 304129
llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
llvm/test/DebugInfo/X86/split-dwarf-omit-empty.ll [new file with mode: 0644]