Skip to content

Commit 4d1e51c

Browse files
authored
Merge pull request #6695 from rintaro/swift-astcontext-pluginloader
[lldb][Swift] Update for 'PluginLoader'
2 parents 5221b19 + 8699bdd commit 4d1e51c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include "swift/AST/ASTContext.h"
1616
#include "swift/AST/ASTDemangler.h"
1717
#include "swift/AST/ASTMangler.h"
18+
#include "swift/AST/ASTWalker.h"
1819
#include "swift/AST/DebuggerClient.h"
1920
#include "swift/AST/Decl.h"
2021
#include "swift/AST/DiagnosticEngine.h"
@@ -27,11 +28,11 @@
2728
#include "swift/AST/ModuleLoader.h"
2829
#include "swift/AST/NameLookup.h"
2930
#include "swift/AST/OperatorNameLookup.h"
31+
#include "swift/AST/PluginLoader.h"
3032
#include "swift/AST/SearchPathOptions.h"
3133
#include "swift/AST/SubstitutionMap.h"
3234
#include "swift/AST/Type.h"
3335
#include "swift/AST/Types.h"
34-
#include "swift/AST/ASTWalker.h"
3536
#include "swift/ASTSectionImporter/ASTSectionImporter.h"
3637
#include "swift/Basic/DiagnosticOptions.h"
3738
#include "swift/Basic/Dwarf.h"
@@ -3084,6 +3085,10 @@ swift::ASTContext *SwiftASTContext::GetASTContext() {
30843085
m_clangimporter->getClangASTContext());
30853086
}
30863087

3088+
// Set up the plugin loader.
3089+
m_ast_context_ap->setPluginLoader(std::make_unique<swift::PluginLoader>(
3090+
*m_ast_context_ap, m_dependency_tracker.get()));
3091+
30873092
// Set up the required state for the evaluator in the TypeChecker.
30883093
registerIDERequestFunctions(m_ast_context_ap->evaluator);
30893094
registerParseRequestFunctions(m_ast_context_ap->evaluator);

0 commit comments

Comments
 (0)