aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2013-11-08 22:14:49 +0000
committerLang Hames <lhames@gmail.com>2013-11-08 22:14:49 +0000
commit3078977d28f2d932afef2e65f4413e3ebca038ea (patch)
tree681e4c246304fa7d0a1a34332107393dff29bab1 /llvm/lib/MC/MCObjectFileInfo.cpp
parent68b1453ce02d61ee24900903d441cd0057c17c0f (diff)
downloadllvm-3078977d28f2d932afef2e65f4413e3ebca038ea.zip
llvm-3078977d28f2d932afef2e65f4413e3ebca038ea.tar.gz
llvm-3078977d28f2d932afef2e65f4413e3ebca038ea.tar.bz2
Add a method to get the object-file appropriate stack map section.
Thanks to Eric Christopher for the tips on the appropriate way to do this. llvm-svn: 194282
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index 958648c..8ef4a0a 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -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;
}