1 //===-- DWARFDebugMacinfo.cpp -----------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "DWARFDebugMacinfo.h"
12 #include "DWARFDebugMacinfoEntry.h"
13 #include "SymbolFileDWARF.h"
15 #include "lldb/Core/Stream.h"
17 using namespace lldb_private;
20 DWARFDebugMacinfo::DWARFDebugMacinfo()
24 DWARFDebugMacinfo::~DWARFDebugMacinfo()
29 DWARFDebugMacinfo::Dump(Stream *s, const DataExtractor& macinfo_data, lldb::offset_t offset)
31 DWARFDebugMacinfoEntry maninfo_entry;
32 if (macinfo_data.GetByteSize() == 0)
34 s->PutCString("< EMPTY >\n");
37 if (offset == LLDB_INVALID_OFFSET)
40 while (maninfo_entry.Extract(macinfo_data, &offset))
41 maninfo_entry.Dump(s);
45 if (maninfo_entry.Extract(macinfo_data, &offset))
46 maninfo_entry.Dump(s);