mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-14 14:24:05 +00:00
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
This commit is contained in:
@ -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 |
|
||||
|
Reference in New Issue
Block a user