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