diff options
| author | Swaroop Sridhar <Swaroop.Sridhar@microsoft.com> | 2015-06-25 00:28:42 +0000 |
|---|---|---|
| committer | Swaroop Sridhar <Swaroop.Sridhar@microsoft.com> | 2015-06-25 00:28:42 +0000 |
| commit | e9247ab6d6227f72af93bd021227efda49185b42 (patch) | |
| tree | 0c678eae170e5f5c590ba43eb6ef2837566a1498 /llvm/lib/MC | |
| parent | 3280b3307f67d5b7406c6d8d3b451ddd0aad8832 (diff) | |
| download | bcm5719-llvm-e9247ab6d6227f72af93bd021227efda49185b42.tar.gz bcm5719-llvm-e9247ab6d6227f72af93bd021227efda49185b42.zip | |
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')
| -rw-r--r-- | llvm/lib/MC/MCObjectFileInfo.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp index aa3d965bbce..576827a72d5 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, |

