From 733b63d19b02dcce0331b310e615792bef2e7517 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 24 Oct 2023 12:27:10 -0700 Subject: [PATCH] Remove hardcoded DWARF version and let IRGen derive it from the triple. --- lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp b/lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp index d6789c5c006cb..80830b496cb3e 100644 --- a/lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp +++ b/lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp @@ -34,7 +34,6 @@ #include "swift/AST/Type.h" #include "swift/AST/Types.h" #include "swift/ASTSectionImporter/ASTSectionImporter.h" -#include "swift/Basic/Dwarf.h" #include "swift/Basic/LLVM.h" #include "swift/Basic/LangOptions.h" #include "swift/Basic/Located.h" @@ -979,7 +978,6 @@ SwiftASTContext::SwiftASTContext(std::string description, m_compiler_invocation_ap->getIRGenOptions(); ir_gen_opts.OutputKind = swift::IRGenOutputKind::Module; ir_gen_opts.UseJIT = true; - ir_gen_opts.DWARFVersion = swift::DWARFVersion; // Allow deserializing @_implementationOnly dependencies // to avoid crashing due to module recovery issues. swift::LangOptions &lang_opts = m_compiler_invocation_ap->getLangOptions();