summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-09-29 00:33:22 +0000
committerAdrian Prantl <aprantl@apple.com>2017-09-29 00:33:22 +0000
commit714ee4d536366449e6c89b63d423371f81d4f070 (patch)
tree5490b051275dbf791e3ff92f99125020506e3446 /llvm/lib/DebugInfo
parentb5f39a05a329534979572781b10326c60b0bdc9e (diff)
downloadbcm5719-llvm-714ee4d536366449e6c89b63d423371f81d4f070.tar.gz
bcm5719-llvm-714ee4d536366449e6c89b63d423371f81d4f070.zip
llvm-dwarfdump: add support for .apple_types in --find
llvm-svn: 314479
Diffstat (limited to 'llvm/lib/DebugInfo')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 4a5253a0404..a48f5c41b67 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -457,8 +457,7 @@ void DWARFContext::dump(
if (shouldDump(Explicit, ".apple_types", DIDT_ID_AppleTypes,
DObj->getAppleTypesSection().Data))
- dumpAccelSection(OS, *DObj, DObj->getAppleTypesSection(),
- DObj->getStringSection(), isLittleEndian());
+ getAppleTypes().dump(OS);
if (shouldDump(Explicit, ".apple_namespaces", DIDT_ID_AppleNamespaces,
DObj->getAppleNamespacesSection().Data))
@@ -655,6 +654,11 @@ const DWARFAcceleratorTable &DWARFContext::getAppleNames() {
DObj->getStringSection(), isLittleEndian());
}
+const DWARFAcceleratorTable &DWARFContext::getAppleTypes() {
+ return getAccelTable(AppleTypes, *DObj, DObj->getAppleTypesSection(),
+ DObj->getStringSection(), isLittleEndian());
+}
+
const DWARFLineTable *
DWARFContext::getLineTableForUnit(DWARFUnit *U) {
if (!Line)
OpenPOWER on IntegriCloud