MCDwarf: Refactor line table handling into a single data structure
[oota-llvm.git] / lib / MC / MCObjectStreamer.cpp
index 119df0a083dc3fdbc05cfb7257cd0648635e86b8..996cf5c09b8ebf0bd742bcf2243079d62407b427 100644 (file)
@@ -379,8 +379,7 @@ void MCObjectStreamer::EmitZeros(uint64_t NumBytes) {
 void MCObjectStreamer::FinishImpl() {
   // Dump out the dwarf file & directory tables and line tables.
   const MCSymbol *LineSectionSymbol = NULL;
-  if (!getContext().getMCLineTableSymbols().empty() ||
-      getContext().hasDwarfFiles())
+  if (getContext().hasMCLineSections())
     LineSectionSymbol = MCDwarfFileTable::Emit(this);
 
   // If we are generating dwarf for assembly source files dump out the sections.