DebugInfo: Omit an empty CU when a subprogram was moved into its use
authorDavid Blaikie <dblaikie@gmail.com>
Sun, 28 May 2017 22:51:37 +0000 (22:51 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Sun, 28 May 2017 22:51:37 +0000 (22:51 +0000)
commitf2f898a044ea41f451c7e058514b93609552e7c7
tree4aadbfb25b45e1b79455557756a5e82663cf9a62
parent41119cd07b29e5d08852f328534b1b0064a8313a
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.

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