summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2014-01-28 03:48:44 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2014-01-28 03:48:44 +0000
commit2a154dd09feb0940812c43f187f55f80b9e7317e (patch)
tree24833f95db9b9a3f90e00f41773018a60c9ee3a2 /lib
parentf555fb410ed84d8d7cddf61a266cbb7b7c53437e (diff)
downloadllvm-2a154dd09feb0940812c43f187f55f80b9e7317e.tar.gz
llvm-2a154dd09feb0940812c43f187f55f80b9e7317e.tar.bz2
llvm-2a154dd09feb0940812c43f187f55f80b9e7317e.tar.xz
MC: Add a .debug section that we'll soon use to emit debug info into COFF files
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/MC/MCObjectFileInfo.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/MC/MCObjectFileInfo.cpp b/lib/MC/MCObjectFileInfo.cpp
index 702ec6e421..796d03bfeb 100644
--- a/lib/MC/MCObjectFileInfo.cpp
+++ b/lib/MC/MCObjectFileInfo.cpp
@@ -609,6 +609,13 @@ void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
SectionKind::getReadOnly());
// Debug info.
+ COFFDebugSymbolsSection =
+ Ctx->getCOFFSection(".debug$S",
+ COFF::IMAGE_SCN_MEM_DISCARDABLE |
+ COFF::IMAGE_SCN_CNT_INITIALIZED_DATA |
+ COFF::IMAGE_SCN_MEM_READ,
+ SectionKind::getMetadata());
+
DwarfAbbrevSection =
Ctx->getCOFFSection(".debug_abbrev",
COFF::IMAGE_SCN_MEM_DISCARDABLE |