Skip to content

Commit 564ff8f

Browse files
committed
[lldb][NFCI] Remove use of Stream * from TypeSystem
We always assume these streams are valid, might as well take references instead of raw pointers. Differential Revision: https://reviews.llvm.org/D154549
1 parent b7836d8 commit 564ff8f

File tree

4 files changed

+66
-66
lines changed

4 files changed

+66
-66
lines changed

lldb/include/lldb/Symbol/TypeSystem.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,14 @@ class TypeSystem : public PluginInterface,
385385
#endif
386386

387387
virtual void DumpValue(lldb::opaque_compiler_type_t type,
388-
ExecutionContext *exe_ctx, Stream *s,
388+
ExecutionContext *exe_ctx, Stream &s,
389389
lldb::Format format, const DataExtractor &data,
390390
lldb::offset_t data_offset, size_t data_byte_size,
391391
uint32_t bitfield_bit_size,
392392
uint32_t bitfield_bit_offset, bool show_types,
393393
bool show_summary, bool verbose, uint32_t depth) = 0;
394394

395-
virtual bool DumpTypeValue(lldb::opaque_compiler_type_t type, Stream *s,
395+
virtual bool DumpTypeValue(lldb::opaque_compiler_type_t type, Stream &s,
396396
lldb::Format format, const DataExtractor &data,
397397
lldb::offset_t data_offset, size_t data_byte_size,
398398
uint32_t bitfield_bit_size,
@@ -409,7 +409,7 @@ class TypeSystem : public PluginInterface,
409409
/// source-like representation of the type, whereas eDescriptionLevelVerbose
410410
/// does a dump of the underlying AST if applicable.
411411
virtual void DumpTypeDescription(
412-
lldb::opaque_compiler_type_t type, Stream *s,
412+
lldb::opaque_compiler_type_t type, Stream &s,
413413
lldb::DescriptionLevel level = lldb::eDescriptionLevelFull) = 0;
414414

415415
/// Dump a textual representation of the internal TypeSystem state to the
@@ -423,7 +423,7 @@ class TypeSystem : public PluginInterface,
423423
virtual bool IsRuntimeGeneratedType(lldb::opaque_compiler_type_t type) = 0;
424424

425425
virtual void DumpSummary(lldb::opaque_compiler_type_t type,
426-
ExecutionContext *exe_ctx, Stream *s,
426+
ExecutionContext *exe_ctx, Stream &s,
427427
const DataExtractor &data,
428428
lldb::offset_t data_offset,
429429
size_t data_byte_size) = 0;

0 commit comments

Comments
 (0)