aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackMaps.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/CodeGen/StackMaps.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/CodeGen/StackMaps.cpp')
-rw-r--r--llvm/lib/CodeGen/StackMaps.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp
index b9b652d..b6a900a 100644
--- a/llvm/lib/CodeGen/StackMaps.cpp
+++ b/llvm/lib/CodeGen/StackMaps.cpp
@@ -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.