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
16public:
17 void BuildAddressRangeTable(DWARFDebugAranges *debug_aranges) override;
18
19 void Dump(lldb_private::Stream *s) const override;
20
21 static bool classof(const DWARFUnit *unit) { return !unit->IsTypeUnit(); }
22
24
25 DWARFDIE LookupAddress(const dw_addr_t address);
26
27private:
29 const DWARFUnitHeader &header,
31 DIERef::Section section, bool is_dwo)
32 : DWARFUnit(dwarf, uid, header, abbrevs, section, is_dwo) {}
33
36
37 friend class DWARFUnit;
38};
39
40#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFCOMPILEUNIT_H
Section
Definition: DIERef.h:30
DWARFCompileUnit(const DWARFCompileUnit &)=delete
static bool classof(const DWARFUnit *unit)
DWARFDIE LookupAddress(const dw_addr_t address)
void BuildAddressRangeTable(DWARFDebugAranges *debug_aranges) override
DWARFCompileUnit & GetNonSkeletonUnit()
void Dump(lldb_private::Stream *s) const override
const DWARFCompileUnit & operator=(const DWARFCompileUnit &)=delete
DWARFCompileUnit(SymbolFileDWARF &dwarf, lldb::user_id_t uid, const DWARFUnitHeader &header, const DWARFAbbreviationDeclarationSet &abbrevs, DIERef::Section section, bool is_dwo)
Base class describing the header of any kind of "unit." Some information is specific to certain unit ...
Definition: DWARFUnit.h:41
bool IsTypeUnit() const
Definition: DWARFUnit.h:225
A stream class that can stream formatted output to a file.
Definition: Stream.h:28
uint64_t dw_addr_t
Definition: dwarf.h:27
uint64_t user_id_t
Definition: lldb-types.h:80