diff --git a/lldb/include/lldb/Core/ModuleSpec.h b/lldb/include/lldb/Core/ModuleSpec.h --- a/lldb/include/lldb/Core/ModuleSpec.h +++ b/lldb/include/lldb/Core/ModuleSpec.h @@ -194,7 +194,7 @@ if (dumped_something) strm.PutCString(", "); strm.PutCString("uuid = "); - m_uuid.Dump(&strm); + m_uuid.Dump(strm); dumped_something = true; } if (m_object_name) { diff --git a/lldb/include/lldb/Utility/UUID.h b/lldb/include/lldb/Utility/UUID.h --- a/lldb/include/lldb/Utility/UUID.h +++ b/lldb/include/lldb/Utility/UUID.h @@ -61,7 +61,7 @@ void Clear() { m_bytes.clear(); } - void Dump(Stream *s) const; + void Dump(Stream &s) const; llvm::ArrayRef GetBytes() const { return m_bytes; } diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -1318,7 +1318,7 @@ static void DumpModuleUUID(Stream &strm, Module *module) { if (module && module->GetUUID().IsValid()) - module->GetUUID().Dump(&strm); + module->GetUUID().Dump(strm); else strm.PutCString(" "); } @@ -2560,7 +2560,7 @@ return true; } else { StreamString strm; - module_spec.GetUUID().Dump(&strm); + module_spec.GetUUID().Dump(strm); if (module_spec.GetFileSpec()) { if (module_spec.GetSymbolFileSpec()) { result.AppendErrorWithFormat( @@ -2584,7 +2584,7 @@ } } else { StreamString strm; - module_spec.GetUUID().Dump(&strm); + module_spec.GetUUID().Dump(strm); result.AppendErrorWithFormat( "Unable to locate the executable or symbol file with UUID %s", strm.GetData()); @@ -4240,7 +4240,7 @@ StreamString ss_symfile_uuid; if (module_spec.GetUUID().IsValid()) { ss_symfile_uuid << " ("; - module_spec.GetUUID().Dump(&ss_symfile_uuid); + module_spec.GetUUID().Dump(ss_symfile_uuid); ss_symfile_uuid << ')'; } result.AppendErrorWithFormat( @@ -4275,7 +4275,7 @@ if (!DownloadObjectAndSymbolFile(module_spec, result, flush)) { StreamString error_strm; error_strm.PutCString("unable to find debug symbols for UUID "); - module_spec.GetUUID().Dump(&error_strm); + module_spec.GetUUID().Dump(error_strm); result.AppendError(error_strm.GetString()); return false; } diff --git a/lldb/source/Interpreter/OptionValueUUID.cpp b/lldb/source/Interpreter/OptionValueUUID.cpp --- a/lldb/source/Interpreter/OptionValueUUID.cpp +++ b/lldb/source/Interpreter/OptionValueUUID.cpp @@ -23,7 +23,7 @@ if (dump_mask & eDumpOptionValue) { if (dump_mask & eDumpOptionType) strm.PutCString(" = "); - m_uuid.Dump(&strm); + m_uuid.Dump(strm); } } diff --git a/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp b/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp --- a/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp +++ b/lldb/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp @@ -54,11 +54,11 @@ if (feedback_strm) { feedback_strm->PutCString( "warning: UUID mismatch detected between modules:\n "); - module->GetUUID().Dump(feedback_strm); + module->GetUUID().Dump(*feedback_strm); feedback_strm->PutChar(' '); module->GetFileSpec().Dump(feedback_strm->AsRawOstream()); feedback_strm->PutCString("\n "); - dsym_uuid.Dump(feedback_strm); + dsym_uuid.Dump(*feedback_strm); feedback_strm->PutChar(' '); ofile->GetFileSpec().Dump(feedback_strm->AsRawOstream()); feedback_strm->EOL(); diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -2271,7 +2271,7 @@ message << " (uuid "; if (dump_uuid.IsValid()) - dump_uuid.Dump(&message); + dump_uuid.Dump(message); else message << "not specified"; diff --git a/lldb/source/Utility/UUID.cpp b/lldb/source/Utility/UUID.cpp --- a/lldb/source/Utility/UUID.cpp +++ b/lldb/source/Utility/UUID.cpp @@ -61,7 +61,7 @@ return result; } -void UUID::Dump(Stream *s) const { s->PutCString(GetAsString()); } +void UUID::Dump(Stream &s) const { s.PutCString(GetAsString()); } static inline int xdigit_to_int(char ch) { ch = tolower(ch);