summaryrefslogtreecommitdiff
path: root/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
commitc87e4380542c0e15cdaa480716da1434284feb93 (patch)
tree1e85a39d061ce884439907d38e4b501b939fb20e /lib/CodeGen/StackMaps.cpp
parentab09d1e0ead4ede09f22ef3645bbcf0785d667f8 (diff)
downloadllvm-c87e4380542c0e15cdaa480716da1434284feb93.tar.gz
llvm-c87e4380542c0e15cdaa480716da1434284feb93.tar.bz2
llvm-c87e4380542c0e15cdaa480716da1434284feb93.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194282 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackMaps.cpp')
-rw-r--r--lib/CodeGen/StackMaps.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/StackMaps.cpp b/lib/CodeGen/StackMaps.cpp
index b9b652d98d..b6a900ab49 100644
--- a/lib/CodeGen/StackMaps.cpp
+++ b/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.