summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCObjectFileInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2012-10-08 21:41:30 +0000
committerEric Christopher <echristo@gmail.com>2012-10-08 21:41:30 +0000
commita0ad67dad83cfeddbc8722ca9980da5ac9c9d783 (patch)
tree7c80ea5bedbc75381946e161f0703b7865f6a8d4 /llvm/lib/MC/MCObjectFileInfo.cpp
parent65f0e1d847668c32092201143895eec93a789d53 (diff)
downloadbcm5719-llvm-a0ad67dad83cfeddbc8722ca9980da5ac9c9d783.tar.gz
bcm5719-llvm-a0ad67dad83cfeddbc8722ca9980da5ac9c9d783.zip
Add names for the accelerator table sections so that they can
be emitted if they're wanted on elf platforms. llvm-svn: 165432
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
-rw-r--r--llvm/lib/MC/MCObjectFileInfo.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/llvm/lib/MC/MCObjectFileInfo.cpp b/llvm/lib/MC/MCObjectFileInfo.cpp
index c59477f6dd5..2e1604d6b50 100644
--- a/llvm/lib/MC/MCObjectFileInfo.cpp
+++ b/llvm/lib/MC/MCObjectFileInfo.cpp
@@ -392,6 +392,18 @@ void MCObjectFileInfo::InitELFMCObjectFileInfo(Triple T) {
DwarfMacroInfoSection =
Ctx->getELFSection(".debug_macinfo", ELF::SHT_PROGBITS, 0,
SectionKind::getMetadata());
+ DwarfAccelNamesSection =
+ Ctx->getELFSection(".apple_names", ELF::SHT_PROGBITS, 0,
+ SectionKind::getMetadata());
+ DwarfAccelObjCSection =
+ Ctx->getELFSection(".apple_objc", ELF::SHT_PROGBITS, 0,
+ SectionKind::getMetadata());
+ DwarfAccelNamespaceSection =
+ Ctx->getELFSection(".apple_namespaces", ELF::SHT_PROGBITS, 0,
+ SectionKind::getMetadata());
+ DwarfAccelTypesSection =
+ Ctx->getELFSection(".apple_types", ELF::SHT_PROGBITS, 0,
+ SectionKind::getMetadata());
}
OpenPOWER on IntegriCloud