diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-10-29 17:48:21 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-10-29 17:54:34 -0700 |
commit | db3dba52caa8cd8bb37fa1c7cd2a0bc1ddb214eb (patch) | |
tree | f855da061c67f0fbbe7b9f0c041ce66bdbe4cf7f /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 29f9db7125af2bba0863e9aa937b0b12b7dd187b (diff) | |
download | llvm-db3dba52caa8cd8bb37fa1c7cd2a0bc1ddb214eb.zip llvm-db3dba52caa8cd8bb37fa1c7cd2a0bc1ddb214eb.tar.gz llvm-db3dba52caa8cd8bb37fa1c7cd2a0bc1ddb214eb.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/MachOObjectFile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |