Skip to content

Commit b33e7a8

Browse files
committed
[lldb] Update call to performIRGeneration
1 parent 805872d commit b33e7a8

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

lldb/include/lldb/Symbol/SwiftASTContext.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class IRGenOptions;
4848
class NominalTypeDecl;
4949
class SearchPathOptions;
5050
class SILModule;
51+
class TBDGenOptions;
5152
class VarDecl;
5253
class ModuleDecl;
5354
class SourceFile;
@@ -821,6 +822,7 @@ class SwiftASTContext : public TypeSystemSwift {
821822
ConstString GetMangledTypeName(swift::TypeBase *);
822823

823824
swift::IRGenOptions &GetIRGenOptions();
825+
swift::TBDGenOptions &GetTBDGenOptions();
824826

825827
void ModulesDidLoad(ModuleList &module_list);
826828

lldb/source/Plugins/ExpressionParser/Swift/SwiftExpressionParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1669,8 +1669,8 @@ unsigned SwiftExpressionParser::Parse(DiagnosticManager &diagnostic_manager,
16691669
IRExecutionUnit::GetLLVMGlobalContextMutex());
16701670

16711671
auto GenModule = swift::performIRGeneration(
1672-
swift_ast_ctx->GetIRGenOptions(), &parsed_expr->module,
1673-
std::move(sil_module), "lldb_module",
1672+
&parsed_expr->module, swift_ast_ctx->GetIRGenOptions(),
1673+
swift_ast_ctx->GetTBDGenOptions(), std::move(sil_module), "lldb_module",
16741674
swift::PrimarySpecificPaths("", parsed_expr->main_filename),
16751675
llvm::ArrayRef<std::string>());
16761676

lldb/source/Symbol/SwiftASTContext.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,6 +2310,10 @@ swift::IRGenOptions &SwiftASTContext::GetIRGenOptions() {
23102310
return m_compiler_invocation_ap->getIRGenOptions();
23112311
}
23122312

2313+
swift::TBDGenOptions &SwiftASTContext::GetTBDGenOptions() {
2314+
return m_compiler_invocation_ap->getTBDGenOptions();
2315+
}
2316+
23132317
llvm::Triple SwiftASTContext::GetTriple() const {
23142318
VALID_OR_RETURN(llvm::Triple());
23152319
return llvm::Triple(m_compiler_invocation_ap->getTargetTriple());

0 commit comments

Comments
 (0)