summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2014-08-01 18:47:09 +0000
committerPhilip Reames <listmail@philipreames.com>2014-08-01 18:47:09 +0000
commit7684618401abb5c43a3d9be15283f381ccde35c9 (patch)
tree12d9e962761c3604f872216e972a0c0507c2a49e /llvm/lib/MC/MCObjectFileInfo.cpp
parent50a4005e351c7fb9b9494e8320df3212dc8207e0 (diff)
downloadbcm5719-llvm-7684618401abb5c43a3d9be15283f381ccde35c9.tar.gz
bcm5719-llvm-7684618401abb5c43a3d9be15283f381ccde35c9.zip
Add support for StackMap section for ELF/Linux systems
This patch adds code to emits the StackMap section on ELF systems. This section is required to support llvm.experimental.stackmap and llvm.experimental.patchpoint intrinsics. Reviewers: ributzka, echristo Differential Revision: http://reviews.llvm.org/D4574 llvm-svn: 214538
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index df5787c7426..da707d860a6 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -583,6 +583,12 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
DwarfAddrSection =
Ctx->getELFSection(".debug_addr", ELF::SHT_PROGBITS, 0,
SectionKind::getMetadata());
+
+ StackMapSection =
+ Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS,
+ ELF::SHF_ALLOC,
+ SectionKind::getMetadata());
+
}
OpenPOWER on IntegriCloud