Add an assert.
[oota-llvm.git] / lib / MC / MCMachOStreamer.cpp
index 67a144a3412062ab7b79edcec016ecdaed239cc1..3236432fb8d8962dae899f2f0850077836176750 100644 (file)
@@ -414,7 +414,10 @@ void MCMachOStreamer::Finish() {
                                          "__debug_line",
                                          MCSectionMachO::S_ATTR_DEBUG,
                                          0, SectionKind::getDataRelLocal());
-    MCDwarfFileTable::Emit(this, DwarfLineSection);
+    MCSectionData &DLS =
+      getAssembler().getOrCreateSectionData(*DwarfLineSection);
+    int PointerSize = getAssembler().getBackend().getPointerSize();
+    MCDwarfFileTable::Emit(this, DwarfLineSection, &DLS, PointerSize);
   }
 
   // We have to set the fragment atom associations so we can relax properly for