Add a method to get the object-file appropriate stack map section.
[oota-llvm.git] / lib / MC / MCObjectFileInfo.cpp
index 958648c656ef47a7e9eca2f3c0bb21ee3f50bcb3..8ef4a0a6d7b14351033fcabe281c9e1395638b60 100644 (file)
@@ -234,6 +234,9 @@ void MCObjectFileInfo::InitMachOMCObjectFileInfo(Triple T) {
     Ctx->getMachOSection("__DWARF", "__debug_inlined",
                          MCSectionMachO::S_ATTR_DEBUG,
                          SectionKind::getMetadata());
+  StackMapSection =
+    Ctx->getMachOSection("__LLVM_STACKMAPS", "__llvm_stackmaps", 0,
+                         SectionKind::getMetadata());
 
   TLSExtraDataSection = TLSTLVSection;
 }