mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-11 00:39:36 +00:00
COFF: Add support for Dwarf accelerator tables.
This allows COFF targets to emit accelerator tables when requested by -dwarf-accel-tables=Enable instead of aborting. The test DebugInfo/cross-cu-inlining.ll covers this on COFF platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
24e874a1dd
commit
f6c436e9d7
@ -781,6 +781,27 @@ void MCObjectFileInfo::InitCOFFMCObjectFileInfo(Triple T) {
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getMetadata());
|
||||
|
||||
DwarfAccelNamesSection =
|
||||
Ctx->getCOFFSection(".apple_names",
|
||||
COFF::IMAGE_SCN_MEM_DISCARDABLE |
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getMetadata());
|
||||
DwarfAccelNamespaceSection =
|
||||
Ctx->getCOFFSection(".apple_namespaces",
|
||||
COFF::IMAGE_SCN_MEM_DISCARDABLE |
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getMetadata());
|
||||
DwarfAccelTypesSection =
|
||||
Ctx->getCOFFSection(".apple_types",
|
||||
COFF::IMAGE_SCN_MEM_DISCARDABLE |
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getMetadata());
|
||||
DwarfAccelObjCSection =
|
||||
Ctx->getCOFFSection(".apple_objc",
|
||||
COFF::IMAGE_SCN_MEM_DISCARDABLE |
|
||||
COFF::IMAGE_SCN_MEM_READ,
|
||||
SectionKind::getMetadata());
|
||||
|
||||
DrectveSection =
|
||||
Ctx->getCOFFSection(".drectve",
|
||||
COFF::IMAGE_SCN_LNK_INFO |
|
||||
|
Loading…
x
Reference in New Issue
Block a user