diff options
author | Alex Langford <alangford@apple.com> | 2023-06-24 12:23:43 -0700 |
---|---|---|
committer | Alex Langford <alangford@apple.com> | 2023-06-26 10:33:18 -0700 |
commit | 718e0cd6e7240a1233991eec472aa904800dce00 (patch) | |
tree | a0f2236c159cf4aa7d1af8b5ac7df728f45245eb /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | 55e199a2c9f4b218499733d60129deffa0a025fe (diff) | |
download | llvm-718e0cd6e7240a1233991eec472aa904800dce00.zip llvm-718e0cd6e7240a1233991eec472aa904800dce00.tar.gz llvm-718e0cd6e7240a1233991eec472aa904800dce00.tar.bz2 |
[lldb][NFCI] UUID::Dump should take a reference instead of a pointer
We always assume the Stream pointer is valid, might as well be taking a
reference instead.
Differential Revision: https://reviews.llvm.org/D153710
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index dd4fbe8..300053b 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -1318,7 +1318,7 @@ static void DumpModuleArchitecture(Stream &strm, Module *module, 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 @@ protected: 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 @@ protected: } } 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 @@ protected: 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 @@ protected: 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; } |