aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>2015-06-25 00:28:42 +0000
committerSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>2015-06-25 00:28:42 +0000
commite9247ab6d6227f72af93bd021227efda49185b42 (patch)
tree0c678eae170e5f5c590ba43eb6ef2837566a1498 /llvm/lib/MC/MCObjectFileInfo.cpp
parent3280b3307f67d5b7406c6d8d3b451ddd0aad8832 (diff)
downloadllvm-e9247ab6d6227f72af93bd021227efda49185b42.zip
llvm-e9247ab6d6227f72af93bd021227efda49185b42.tar.gz
llvm-e9247ab6d6227f72af93bd021227efda49185b42.tar.bz2
Enable StackMap Serialization for COFF
Summary This change turns on the emission of __LLVM_Stackmaps section when generating COFF binaries. Test Plan Added a scenario to the test case: test\CodeGen\X86\statepoint-stackmap-format.ll. Code Review: http://reviews.llvm.org/D10680 llvm-svn: 240613
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index aa3d965..576827a 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -733,6 +733,11 @@ void MCObjectFileInfo::initCOFFMCObjectFileInfo(Triple T) {
".tls$", COFF::IMAGE_SCN_CNT_INITIALIZED_DATA | COFF::IMAGE_SCN_MEM_READ |
COFF::IMAGE_SCN_MEM_WRITE,
SectionKind::getDataRel());
+
+ StackMapSection = Ctx->getCOFFSection(".llvm_stackmaps",
+ COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
+ COFF::IMAGE_SCN_MEM_READ,
+ SectionKind::getReadOnly());
}
void MCObjectFileInfo::InitMCObjectFileInfo(const Triple &TheTriple,