@@ -3889,13 +3889,17 @@ void SwiftASTContext::RegisterSectionModules(
3889
3889
if (!section_list)
3890
3890
return ;
3891
3891
3892
+ llvm::Triple filter = GetTriple ();
3892
3893
auto parse_ast_section = [&](llvm::StringRef section_data_ref, size_t n,
3893
3894
size_t total) {
3894
3895
llvm::SmallVector<std::string, 4 > swift_modules;
3895
- if (!swift::parseASTSection (*loader, section_data_ref, swift_modules)) {
3896
+ if (!swift::parseASTSection (*loader, section_data_ref, filter,
3897
+ swift_modules)) {
3896
3898
LOG_PRINTF (GetLog (LLDBLog::Types),
3897
- " failed to parse AST section %zu/%zu in image \" %s\" ." , n,
3898
- total, module .GetFileSpec ().GetFilename ().GetCString ());
3899
+ " failed to parse AST section %zu/%zu in image \" %s\" "
3900
+ " (filter=\" %s\" )." ,
3901
+ n, total, module .GetFileSpec ().GetFilename ().GetCString (),
3902
+ filter.str ().c_str ());
3899
3903
return ;
3900
3904
}
3901
3905
@@ -3904,9 +3908,10 @@ void SwiftASTContext::RegisterSectionModules(
3904
3908
module_names.push_back (module_name);
3905
3909
LOG_PRINTF (GetLog (LLDBLog::Types),
3906
3910
" parsed module \" %s\" from Swift AST section %zu/%zu in "
3907
- " image \" %s\" ." ,
3911
+ " image \" %s\" (filter= \" %s \" ) ." ,
3908
3912
module_name.c_str (), n, total,
3909
- module .GetFileSpec ().GetFilename ().GetCString ());
3913
+ module .GetFileSpec ().GetFilename ().GetCString (),
3914
+ filter.str ().c_str ());
3910
3915
}
3911
3916
};
3912
3917
@@ -3927,8 +3932,10 @@ void SwiftASTContext::RegisterSectionModules(
3927
3932
// Grab all the AST blobs from the symbol vendor.
3928
3933
auto ast_file_datas = module .GetASTData (eLanguageTypeSwift);
3929
3934
LOG_PRINTF (GetLog (LLDBLog::Types),
3930
- " (\" %s\" ) retrieved %zu AST Data blobs from the symbol vendor." ,
3931
- GetBriefModuleName (module ).c_str (), ast_file_datas.size ());
3935
+ " (\" %s\" ) retrieved %zu AST Data blobs from the symbol vendor "
3936
+ " (filter=\" %s\" )." ,
3937
+ GetBriefModuleName (module ).c_str (), ast_file_datas.size (),
3938
+ filter.str ().c_str ());
3932
3939
3933
3940
// Add each of the AST blobs to the vector of AST blobs for
3934
3941
// the module.
0 commit comments