@@ -282,22 +282,7 @@ class ClangASTImporter {
282
282
// / their counterpart from a C++ module.
283
283
struct ASTImporterDelegate : public clang ::ASTImporter {
284
284
ASTImporterDelegate (ClangASTImporter &main, clang::ASTContext *target_ctx,
285
- clang::ASTContext *source_ctx)
286
- : clang::ASTImporter(*target_ctx, main.m_file_manager, *source_ctx,
287
- main.m_file_manager, true /* minimal*/ ),
288
- m_main (main), m_source_ctx(source_ctx) {
289
- // Target and source ASTContext shouldn't be identical. Importing AST
290
- // nodes within the same AST doesn't make any sense as the whole idea
291
- // is to import them to a different AST.
292
- lldbassert (target_ctx != source_ctx && " Can't import into itself" );
293
- // This is always doing a minimal import of any declarations. This means
294
- // that there has to be an ExternalASTSource in the target ASTContext
295
- // (that should implement the callbacks that complete any declarations
296
- // on demand). Without an ExternalASTSource, this ASTImporter will just
297
- // do a minimal import and the imported declarations won't be completed.
298
- assert (target_ctx->getExternalSource () && " Missing ExternalSource" );
299
- setODRHandling (clang::ASTImporter::ODRHandlingType::Liberal);
300
- }
285
+ clang::ASTContext *source_ctx);
301
286
302
287
// / Scope guard that attaches a CxxModuleHandler to an ASTImporterDelegate
303
288
// / and deattaches it at the end of the scope. Supports being used multiple
0 commit comments