diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-12-06 08:38:23 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-12-06 09:40:42 +0100 |
commit | 4dac97eb1e6563750e682e482e68f29ac076a4f7 (patch) | |
tree | f766d99985f1c8f5674d1939b7de7e38b669315c /lldb/source/Core | |
parent | 51ce067a442ee6381527b12d113f51906b0245a8 (diff) | |
download | bcm5719-llvm-4dac97eb1e6563750e682e482e68f29ac076a4f7.tar.gz bcm5719-llvm-4dac97eb1e6563750e682e482e68f29ac076a4f7.zip |
[lldb][NFC] Migrate FileSpec::Dump to raw_ostream
Diffstat (limited to 'lldb/source/Core')
-rw-r--r-- | lldb/source/Core/FileSpecList.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Core/FormatEntity.cpp | 2 | ||||
-rw-r--r-- | lldb/source/Core/Module.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Core/FileSpecList.cpp b/lldb/source/Core/FileSpecList.cpp index 95133faf750..6651324fa36 100644 --- a/lldb/source/Core/FileSpecList.cpp +++ b/lldb/source/Core/FileSpecList.cpp @@ -47,7 +47,7 @@ void FileSpecList::Clear() { m_files.clear(); } void FileSpecList::Dump(Stream *s, const char *separator_cstr) const { collection::const_iterator pos, end = m_files.end(); for (pos = m_files.begin(); pos != end; ++pos) { - pos->Dump(s); + pos->Dump(s->AsRawOstream()); if (separator_cstr && ((pos + 1) != end)) s->PutCString(separator_cstr); } diff --git a/lldb/source/Core/FormatEntity.cpp b/lldb/source/Core/FormatEntity.cpp index 81ad6d127f0..beab026e67a 100644 --- a/lldb/source/Core/FormatEntity.cpp +++ b/lldb/source/Core/FormatEntity.cpp @@ -2310,7 +2310,7 @@ bool FormatEntity::FormatFileSpec(const FileSpec &file_spec, Stream &s, llvm::StringRef variable_name, llvm::StringRef variable_format) { if (variable_name.empty() || variable_name.equals(".fullpath")) { - file_spec.Dump(&s); + file_spec.Dump(s.AsRawOstream()); return true; } else if (variable_name.equals(".basename")) { s.PutCString(file_spec.GetFilename().AsCString("")); diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index cc4eea67417..5bb6a55457d 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -1511,7 +1511,7 @@ bool Module::LoadScriptingResourceInTarget(Target *target, Status &error, return false; } StreamString scripting_stream; - scripting_fspec.Dump(&scripting_stream); + scripting_fspec.Dump(scripting_stream.AsRawOstream()); const bool can_reload = true; const bool init_lldb_globals = false; bool did_load = script_interpreter->LoadScriptingModule( |