Factor some code into a new EmitFrames method.
[oota-llvm.git] / lib / MC / MCAsmStreamer.cpp
index 8f9209d67f01696acf837615aad27d3019c1cfa7..c7fc190b87608549d98e126c0afd5dc8520680e7 100644 (file)
@@ -1069,6 +1069,9 @@ void MCAsmStreamer::Finish() {
   // Dump out the dwarf file & directory tables and line tables.
   if (getContext().hasDwarfFiles() && !UseLoc)
     MCDwarfFileTable::Emit(this);
+
+  if (!UseCFI)
+    EmitFrames(false);
 }
 
 MCStreamer *llvm::createAsmStreamer(MCContext &Context,