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