Enable StackMap Serialization for COFF
[oota-llvm.git] / lib / Target / X86 / X86AsmPrinter.cpp
index 205140144ab5ac478508b12fd9d078214a52223e..0557582b50df6a98c0bfeabd5e03121d6726307a 100644 (file)
@@ -725,6 +725,8 @@ void X86AsmPrinter::EmitEndOfAsmFile(Module &M) {
       for (auto & Symbol : DLLExportedFns)
         GenerateExportDirective(Symbol, /*IsData=*/false);
     }
+
+    SM.serializeToStackMapSection();
   }
 
   if (TT.isOSBinFormatELF()) {