From db3dba52caa8cd8bb37fa1c7cd2a0bc1ddb214eb Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 29 Oct 2020 17:48:21 -0700 Subject: [dwarfdump] Recognize __apple sections as debug info sections Recognize the __apple_ sections as debug info sections and make sure they're included in the --show-sections-sizes output. Differential revision: https://reviews.llvm.org/D90433 --- llvm/lib/Object/MachOObjectFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/Object/MachOObjectFile.cpp') diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp index 4d85e6f..2f4548c 100644 --- a/llvm/lib/Object/MachOObjectFile.cpp +++ b/llvm/lib/Object/MachOObjectFile.cpp @@ -2032,7 +2032,8 @@ bool MachOObjectFile::isSectionBSS(DataRefImpl Sec) const { bool MachOObjectFile::isDebugSection(StringRef SectionName) const { return SectionName.startswith("__debug") || - SectionName.startswith("__zdebug") || SectionName == "__gdb_index"; + SectionName.startswith("__zdebug") || + SectionName.startswith("__apple") || SectionName == "__gdb_index"; } unsigned MachOObjectFile::getSectionID(SectionRef Sec) const { -- cgit v1.1