aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2011-05-20 22:13:55 +0000
committerCharles Davis <cdavis@mines.edu>2011-05-20 22:13:55 +0000
commitbc1feb1f2580fd582ca7ae59f639895226b70beb (patch)
tree321aea62011587271303ea40da62d295a481ef9b /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent43479731c00919b86b194a4e158437e968f588a9 (diff)
downloadllvm-bc1feb1f2580fd582ca7ae59f639895226b70beb.zip
llvm-bc1feb1f2580fd582ca7ae59f639895226b70beb.tar.gz
llvm-bc1feb1f2580fd582ca7ae59f639895226b70beb.tar.bz2
Add .pdata and .xdata sections to the COFF TLOF implementation.
llvm-svn: 131763
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index c1e1b76..964919e 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -941,6 +941,7 @@ void TargetLoweringObjectFileCOFF::Initialize(MCContext &Ctx,
SectionKind::getMetadata());
DwarfLineSection =
getContext().getCOFFSection(".debug_line",
+ SectionKind::getMetadata());
COFF::IMAGE_SCN_MEM_DISCARDABLE |
COFF::IMAGE_SCN_MEM_READ,
SectionKind::getMetadata());
@@ -989,6 +990,20 @@ void TargetLoweringObjectFileCOFF::Initialize(MCContext &Ctx,
getContext().getCOFFSection(".drectve",
COFF::IMAGE_SCN_LNK_INFO,
SectionKind::getMetadata());
+
+ PDataSection =
+ getContext().getCOFFSection(".pdata",
+ COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
+ COFF::IMAGE_SCN_MEM_READ |
+ COFF::IMAGE_SCN_MEM_WRITE,
+ SectionKind::getDataRel());
+
+ XDataSection =
+ getContext().getCOFFSection(".xdata",
+ COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
+ COFF::IMAGE_SCN_MEM_READ |
+ COFF::IMAGE_SCN_MEM_WRITE,
+ SectionKind::getDataRel());
}
const MCSection *TargetLoweringObjectFileCOFF::getEHFrameSection() const {