aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/MachOObjectFile.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-11-02 14:41:18 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-11-02 14:49:57 -0800
commitc938b4a1ed43f3075155e16a7c2792ca8c122258 (patch)
tree9e9f6a8bf6854b1dbd4795f53ece3d06eb28caef /llvm/lib/Object/MachOObjectFile.cpp
parentb870d9ec8334523a902e0abc04fd49a5a95dbc43 (diff)
downloadllvm-c938b4a1ed43f3075155e16a7c2792ca8c122258.zip
llvm-c938b4a1ed43f3075155e16a7c2792ca8c122258.tar.gz
llvm-c938b4a1ed43f3075155e16a7c2792ca8c122258.tar.bz2
[MachO] Also recongize __swift_ast as a debug info section
Address post-commit review from Adrian.
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
-rw-r--r--llvm/lib/Object/MachOObjectFile.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Object/MachOObjectFile.cpp b/llvm/lib/Object/MachOObjectFile.cpp
index 2f4548c..9d3c306 100644
--- a/llvm/lib/Object/MachOObjectFile.cpp
+++ b/llvm/lib/Object/MachOObjectFile.cpp
@@ -2033,7 +2033,8 @@ bool MachOObjectFile::isSectionBSS(DataRefImpl Sec) const {
bool MachOObjectFile::isDebugSection(StringRef SectionName) const {
return SectionName.startswith("__debug") ||
SectionName.startswith("__zdebug") ||
- SectionName.startswith("__apple") || SectionName == "__gdb_index";
+ SectionName.startswith("__apple") || SectionName == "__gdb_index" ||
+ SectionName == "__swift_ast";
}
unsigned MachOObjectFile::getSectionID(SectionRef Sec) const {