[lldb] Add support for recognizing swift ast sections in object files

In Apple's downstream fork, there is support for understanding the swift
AST sections in various binaries. Even though the lldb on llvm.org does
not have support for debugging swift, I think it makes sense to move
support for recognizing swift ast sections upstream.

Differential Revision: https://reviews.llvm.org/D159142
This commit is contained in:
Alex Langford committed 2023-08-31 15:16:12 -07:00
1 parent dfc0ede1f8
commit 764287f1ad
6 files changed
+11

No files matched your search

@@ -1679,6 +1679,7 @@ static SectionType GetSectionTypeFromName(llvm::StringRef Name) {
.Case(".gnu_debugaltlink", eSectionTypeDWARFGNUDebugAltLink)
.Case(".gosymtab", eSectionTypeGoSymtab)
.Case(".text", eSectionTypeCode)
.Case(".swift_ast", eSectionTypeSwiftModules)
.Default(eSectionTypeOther);
}