Skip to content

Commit 8699bdd

Browse files
committed
[lldb] Update for 'PluginLoader'
ASTContext requires 'setPluginLoader()' for loading plugins.
1 parent 107de6a commit 8699bdd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
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"
@@ -3083,6 +3084,10 @@ swift::ASTContext *SwiftASTContext::GetASTContext() {
30833084
m_clangimporter->getClangASTContext());
30843085
}
30853086

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

0 commit comments

Comments
 (0)