diff options
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacinfo.cpp')
-rw-r--r-- | lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacinfo.cpp | 43 |
1 files changed, 17 insertions, 26 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacinfo.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacinfo.cpp index 0e2aaa47e8c..d56463039a1 100644 --- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacinfo.cpp +++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugMacinfo.cpp @@ -17,32 +17,23 @@ using namespace lldb_private; using namespace std; -DWARFDebugMacinfo::DWARFDebugMacinfo() -{ -} +DWARFDebugMacinfo::DWARFDebugMacinfo() {} -DWARFDebugMacinfo::~DWARFDebugMacinfo() -{ -} +DWARFDebugMacinfo::~DWARFDebugMacinfo() {} -void -DWARFDebugMacinfo::Dump(Stream *s, const DWARFDataExtractor& macinfo_data, lldb::offset_t offset) -{ - DWARFDebugMacinfoEntry maninfo_entry; - if (macinfo_data.GetByteSize() == 0) - { - s->PutCString("< EMPTY >\n"); - return; - } - if (offset == LLDB_INVALID_OFFSET) - { - offset = 0; - while (maninfo_entry.Extract(macinfo_data, &offset)) - maninfo_entry.Dump(s); - } - else - { - if (maninfo_entry.Extract(macinfo_data, &offset)) - maninfo_entry.Dump(s); - } +void DWARFDebugMacinfo::Dump(Stream *s, const DWARFDataExtractor &macinfo_data, + lldb::offset_t offset) { + DWARFDebugMacinfoEntry maninfo_entry; + if (macinfo_data.GetByteSize() == 0) { + s->PutCString("< EMPTY >\n"); + return; + } + if (offset == LLDB_INVALID_OFFSET) { + offset = 0; + while (maninfo_entry.Extract(macinfo_data, &offset)) + maninfo_entry.Dump(s); + } else { + if (maninfo_entry.Extract(macinfo_data, &offset)) + maninfo_entry.Dump(s); + } } |