Add a method to get the object-file appropriate stack map section.
[oota-llvm.git] / lib / CodeGen / StackMaps.cpp
index b9b652d98d6798b1d575b48a46d3df4407630ce7..b6a900ab495f6353fd039df94d246135214db3a8 100644 (file)
@@ -97,8 +97,7 @@ void StackMaps::serializeToStackMapSection() {
 
   // Create the section.
   const MCSection *StackMapSection =
-    OutContext.getMachOSection("__LLVM_STACKMAPS", "__llvm_stackmaps", 0,
-                               SectionKind::getMetadata());
+    OutContext.getObjectFileInfo().getStackMapSection();
   AP.OutStreamer.SwitchSection(StackMapSection);
 
   // Emit a dummy symbol to force section inclusion.