Skip to content

Commit 1181921

Browse files
authored
[lldb] Remove (unused) SymbolContext::Dump (llvm#123211)
We still have GetDescription and DumpStopContext which serve a similar purpose. (The main reason this is bothering me is because I'm working through the uses of (deprecated) Function::GetAddressRange.)
1 parent e899930 commit 1181921

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

lldb/include/lldb/Symbol/SymbolContext.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,6 @@ class SymbolContext {
9191
/// their default state.
9292
void Clear(bool clear_target);
9393

94-
/// Dump a description of this object to a Stream.
95-
///
96-
/// Dump a description of the contents of this object to the supplied stream
97-
/// \a s.
98-
///
99-
/// \param[in] s
100-
/// The stream to which to dump the object description.
101-
void Dump(Stream *s, Target *target) const;
102-
10394
/// Dump the stop context in this object to a Stream.
10495
///
10596
/// Dump the best description of this object to the stream. The information

lldb/source/Symbol/SymbolContext.cpp

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -317,65 +317,6 @@ uint32_t SymbolContext::GetResolvedMask() const {
317317
return resolved_mask;
318318
}
319319

320-
void SymbolContext::Dump(Stream *s, Target *target) const {
321-
*s << this << ": ";
322-
s->Indent();
323-
s->PutCString("SymbolContext");
324-
s->IndentMore();
325-
s->EOL();
326-
s->IndentMore();
327-
s->Indent();
328-
*s << "Module = " << module_sp.get() << ' ';
329-
if (module_sp)
330-
module_sp->GetFileSpec().Dump(s->AsRawOstream());
331-
s->EOL();
332-
s->Indent();
333-
*s << "CompileUnit = " << comp_unit;
334-
if (comp_unit != nullptr)
335-
s->Format(" {{{0:x-16}} {1}", comp_unit->GetID(),
336-
comp_unit->GetPrimaryFile());
337-
s->EOL();
338-
s->Indent();
339-
*s << "Function = " << function;
340-
if (function != nullptr) {
341-
s->Format(" {{{0:x-16}} {1}, address-range = ", function->GetID(),
342-
function->GetType()->GetName());
343-
function->GetAddressRange().Dump(s, target, Address::DumpStyleLoadAddress,
344-
Address::DumpStyleModuleWithFileAddress);
345-
s->EOL();
346-
s->Indent();
347-
Type *func_type = function->GetType();
348-
if (func_type) {
349-
*s << " Type = ";
350-
func_type->Dump(s, false);
351-
}
352-
}
353-
s->EOL();
354-
s->Indent();
355-
*s << "Block = " << block;
356-
if (block != nullptr)
357-
s->Format(" {{{0:x-16}}", block->GetID());
358-
s->EOL();
359-
s->Indent();
360-
*s << "LineEntry = ";
361-
line_entry.Dump(s, target, true, Address::DumpStyleLoadAddress,
362-
Address::DumpStyleModuleWithFileAddress, true);
363-
s->EOL();
364-
s->Indent();
365-
*s << "Symbol = " << symbol;
366-
if (symbol != nullptr && symbol->GetMangled())
367-
*s << ' ' << symbol->GetName().AsCString();
368-
s->EOL();
369-
*s << "Variable = " << variable;
370-
if (variable != nullptr) {
371-
s->Format(" {{{0:x-16}} {1}", variable->GetID(),
372-
variable->GetType()->GetName());
373-
s->EOL();
374-
}
375-
s->IndentLess();
376-
s->IndentLess();
377-
}
378-
379320
bool lldb_private::operator==(const SymbolContext &lhs,
380321
const SymbolContext &rhs) {
381322
return lhs.function == rhs.function && lhs.symbol == rhs.symbol &&

0 commit comments

Comments
 (0)