Skip to content

Commit 69fa38f

Browse files
Merge pull request #8114 from adrian-prantl/swift-overlay
Remove dead code path. The Swift stdlib is always a Swift module
2 parents b7a3ea6 + 23905e6 commit 69fa38f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2062,9 +2062,7 @@ SwiftASTContext::CreateInstance(lldb::LanguageType language, Module &module,
20622062
swift_ast_sp->m_ast_context_ap->SetPreModuleImportCallback(
20632063
[&progress](llvm::StringRef module_name,
20642064
swift::ASTContext::ModuleImportKind kind) {
2065-
progress.Increment(1, (kind == swift::ASTContext::Overlay
2066-
? module_name.str() + " (overlay)"
2067-
: module_name.str()));
2065+
progress.Increment(1, module_name.str());
20682066
});
20692067

20702068
// Clear the callback function on scope exit to prevent an out-of-scope
@@ -2577,9 +2575,7 @@ lldb::TypeSystemSP SwiftASTContext::CreateInstance(
25772575
swift_ast_sp->m_ast_context_ap->SetPreModuleImportCallback(
25782576
[&progress](llvm::StringRef module_name,
25792577
swift::ASTContext::ModuleImportKind kind) {
2580-
progress.Increment(1, (kind == swift::ASTContext::Overlay
2581-
? module_name.str() + " (overlay)"
2582-
: module_name.str()));
2578+
progress.Increment(1, module_name.str());
25832579
});
25842580

25852581
// Clear the callback function on scope exit to prevent an out-of-scope

0 commit comments

Comments
 (0)