LLDB mainline
DWARFCompileUnit.h
Go to the documentation of this file.
1//===-- DWARFCompileUnit.h --------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFCOMPILEUNIT_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFCOMPILEUNIT_H
11
12#include "DWARFUnit.h"
13#include "llvm/Support/Error.h"
14
15namespace llvm {
16class DWARFAbbreviationDeclarationSet;
17} // namespace llvm
18
19namespace lldb_private::plugin {
20namespace dwarf {
22public:
23 void BuildAddressRangeTable(DWARFDebugAranges *debug_aranges) override;
24
25 void Dump(Stream *s) const override;
26
27 static bool classof(const DWARFUnit *unit) { return !unit->IsTypeUnit(); }
28
30
31 DWARFDIE LookupAddress(const dw_addr_t address);
32
33private:
35 const DWARFUnitHeader &header,
36 const llvm::DWARFAbbreviationDeclarationSet &abbrevs,
37 DIERef::Section section, bool is_dwo)
38 : DWARFUnit(dwarf, uid, header, abbrevs, section, is_dwo) {}
39
42
43 friend class DWARFUnit;
44};
45} // namespace dwarf
46} // namespace lldb_private::plugin
47
48#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFCOMPILEUNIT_H
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
DWARFCompileUnit(const DWARFCompileUnit &)=delete
DWARFCompileUnit(SymbolFileDWARF &dwarf, lldb::user_id_t uid, const DWARFUnitHeader &header, const llvm::DWARFAbbreviationDeclarationSet &abbrevs, DIERef::Section section, bool is_dwo)
DWARFDIE LookupAddress(const dw_addr_t address)
const DWARFCompileUnit & operator=(const DWARFCompileUnit &)=delete
void BuildAddressRangeTable(DWARFDebugAranges *debug_aranges) override
static bool classof(const DWARFUnit *unit)
Base class describing the header of any kind of "unit." Some information is specific to certain unit ...
Definition: DWARFUnit.h:44
uint64_t dw_addr_t
Definition: dwarf.h:27
uint64_t user_id_t
Definition: lldb-types.h:80
Definition: Debugger.h:53