From c938b4a1ed43f3075155e16a7c2792ca8c122258 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 2 Nov 2020 14:41:18 -0800 Subject: [MachO] Also recongize __swift_ast as a debug info section Address post-commit review from Adrian. --- 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 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 { -- cgit v1.1