LLDB  mainline
DWARFTypeUnit.h
Go to the documentation of this file.
1 //===-- DWARFTypeUnit.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_DWARFTYPEUNIT_H
10 #define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFTYPEUNIT_H
11 
12 #include "DWARFUnit.h"
13 #include "llvm/Support/Error.h"
14 
15 class DWARFTypeUnit : public DWARFUnit {
16 public:
17  void BuildAddressRangeTable(DWARFDebugAranges *debug_aranges) override {}
18 
19  void Dump(lldb_private::Stream *s) const override;
20 
21  uint64_t GetTypeHash() { return m_header.GetTypeHash(); }
22 
24 
25  static bool classof(const DWARFUnit *unit) { return unit->IsTypeUnit(); }
26 
27 private:
29  const DWARFUnitHeader &header,
30  const DWARFAbbreviationDeclarationSet &abbrevs,
31  DIERef::Section section, bool is_dwo)
32  : DWARFUnit(dwarf, uid, header, abbrevs, section, is_dwo) {}
33 
34  friend class DWARFUnit;
35 };
36 
37 #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFTYPEUNIT_H
DWARFTypeUnit::BuildAddressRangeTable
void BuildAddressRangeTable(DWARFDebugAranges *debug_aranges) override
Definition: DWARFTypeUnit.h:17
DWARFDebugAranges
Definition: DWARFDebugAranges.h:16
DWARFTypeUnit::GetTypeHash
uint64_t GetTypeHash()
Definition: DWARFTypeUnit.h:21
DWARFTypeUnit
Definition: DWARFTypeUnit.h:15
DWARFUnit::m_header
DWARFUnitHeader m_header
Definition: DWARFUnit.h:290
SymbolFileDWARF
Definition: SymbolFileDWARF.h:58
DWARFTypeUnit::GetTypeOffset
dw_offset_t GetTypeOffset()
Definition: DWARFTypeUnit.h:23
lldb_private::Stream
Definition: Stream.h:28
DWARFTypeUnit::Dump
void Dump(lldb_private::Stream *s) const override
Definition: DWARFTypeUnit.cpp:17
DWARFUnit
Definition: DWARFUnit.h:81
dwarf
Definition: ABISysV_arc.cpp:61
DWARFUnitHeader
Base class describing the header of any kind of "unit." Some information is specific to certain unit ...
Definition: DWARFUnit.h:39
DWARFTypeUnit::DWARFTypeUnit
DWARFTypeUnit(SymbolFileDWARF &dwarf, lldb::user_id_t uid, const DWARFUnitHeader &header, const DWARFAbbreviationDeclarationSet &abbrevs, DIERef::Section section, bool is_dwo)
Definition: DWARFTypeUnit.h:28
DWARFUnit.h
DWARFUnit::GetOffset
dw_offset_t GetOffset() const
Definition: DWARFUnit.h:131
DWARFAbbreviationDeclarationSet
Definition: DWARFDebugAbbrev.h:27
uint32_t
DWARFUnit::IsTypeUnit
bool IsTypeUnit() const
Definition: DWARFUnit.h:220
DWARFUnitHeader::GetTypeOffset
dw_offset_t GetTypeOffset() const
Definition: DWARFUnit.h:68
DWARFTypeUnit::classof
static bool classof(const DWARFUnit *unit)
Definition: DWARFTypeUnit.h:25
lldb::user_id_t
uint64_t user_id_t
Definition: lldb-types.h:84
DWARFUnitHeader::GetTypeHash
uint64_t GetTypeHash() const
Definition: DWARFUnit.h:67
DIERef::Section
Section
Definition: DIERef.h:28