[DWARF] Emit a split line table only if there are split type units.
A .debug_info.dwo section doesn't use the .debug_line.dwo section.
llvm-svn: 326395
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
index 46d6446..e1de946 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
@@ -274,6 +274,10 @@
/// a monolithic sequence of string offsets.
bool UseSegmentedStringOffsetsTable;
+ /// Whether we have emitted any type units with split DWARF (and therefore
+ /// need to emit a line table to the .dwo file).
+ bool HasSplitTypeUnits = false;
+
/// Separated Dwarf Variables
/// In general these will all be for bits that are left in the
/// original object file, rather than things that are meant