[PATCH] Add support for StackMap section for ELF/Linux systems

Philip Reames listmail at philipreames.com
Fri Aug 1 11:56:12 PDT 2014


Closed by commit rL214538 (authored by @reames).

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D4574

Files:
  llvm/trunk/lib/MC/MCObjectFileInfo.cpp
  llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp

Index: llvm/trunk/lib/MC/MCObjectFileInfo.cpp
===================================================================
--- llvm/trunk/lib/MC/MCObjectFileInfo.cpp
+++ llvm/trunk/lib/MC/MCObjectFileInfo.cpp
@@ -583,6 +583,12 @@
   DwarfAddrSection =
     Ctx->getELFSection(".debug_addr", ELF::SHT_PROGBITS, 0,
                        SectionKind::getMetadata());
+
+  StackMapSection =
+    Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS,
+                       ELF::SHF_ALLOC,
+                       SectionKind::getMetadata());
+
 }
 
 
Index: llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp
===================================================================
--- llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp
+++ llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp
@@ -736,6 +736,8 @@
       }
       Stubs.clear();
     }
+
+    SM.serializeToStackMapSection();
   }
 }
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4574.12115.patch
Type: text/x-patch
Size: 867 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140801/b69c222e/attachment.bin>


More information about the llvm-commits mailing list