@@ -1954,6 +1954,13 @@ ProcessModule(ModuleSP module_sp, std::string m_description,
1954
1954
std::vector<std::string> &module_search_paths,
1955
1955
std::vector<std::pair<std::string, bool >> &framework_search_paths,
1956
1956
std::vector<std::string> &extra_clang_args) {
1957
+ {
1958
+ llvm::raw_string_ostream ss (m_description);
1959
+ ss << " ProcessModule(" << ' "' ;
1960
+ module_sp->GetDescription (ss, eDescriptionLevelBrief);
1961
+ ss << ' "' << ' )' ;
1962
+ }
1963
+
1957
1964
const FileSpec &module_file = module_sp->GetFileSpec ();
1958
1965
std::string module_path = module_file.GetPath ();
1959
1966
@@ -1986,9 +1993,8 @@ ProcessModule(ModuleSP module_sp, std::string m_description,
1986
1993
1987
1994
if (!add_it) {
1988
1995
LOG_PRINTF (LIBLLDB_LOG_TYPES,
1989
- " ProcessModule(\" %s\" ) rejecting framework path \" %s\" "
1990
- " as it has no \" Headers\" or \" Modules\" subdirectories." ,
1991
- module_file.GetFilename ().AsCString (" " ),
1996
+ " rejecting framework path \" %s\" as it has no \" Headers\" "
1997
+ " or \" Modules\" subdirectories." ,
1992
1998
framework_path.c_str ());
1993
1999
}
1994
2000
@@ -2006,9 +2012,7 @@ ProcessModule(ModuleSP module_sp, std::string m_description,
2006
2012
// SDK instead.
2007
2013
if (!StringRef (parent_path).startswith (" /System/Library" ) &&
2008
2014
!IsDeviceSupport (parent_path.c_str ())) {
2009
- LOG_PRINTF (LIBLLDB_LOG_TYPES,
2010
- " ProcessModule(\" %s\" ) adding framework path \" %s\" ." ,
2011
- module_file.GetFilename ().AsCString (" " ),
2015
+ LOG_PRINTF (LIBLLDB_LOG_TYPES, " adding framework path \" %s\" ." ,
2012
2016
framework_path.c_str ());
2013
2017
framework_search_paths.push_back (
2014
2018
{std::move (parent_path), /* system*/ false });
@@ -2072,9 +2076,8 @@ ProcessModule(ModuleSP module_sp, std::string m_description,
2072
2076
framework_search_paths.push_back ({fwsp.Path , fwsp.IsSystem });
2073
2077
for (const std::string &arg : ast_context->GetClangArguments ()) {
2074
2078
extra_clang_args.push_back (arg);
2075
- LOG_VERBOSE_PRINTF (LIBLLDB_LOG_TYPES,
2076
- " ProcessModule(\" %s\" ) adding Clang argument \" %s\" ." ,
2077
- module_file.GetFilename ().AsCString (" " ), arg.c_str ());
2079
+ LOG_VERBOSE_PRINTF (LIBLLDB_LOG_TYPES, " adding Clang argument \" %s\" ." ,
2080
+ arg.c_str ());
2078
2081
}
2079
2082
}
2080
2083
}
0 commit comments