LLDB mainline
SymbolFileDWARFDwo.h
Go to the documentation of this file.
1//===-- SymbolFileDWARFDwo.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_SYMBOLFILEDWARFDWO_H
10#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_SYMBOLFILEDWARFDWO_H
11
12#include "SymbolFileDWARF.h"
13#include <optional>
14
16 /// LLVM RTTI support.
17 static char ID;
18
19public:
20 /// LLVM RTTI support.
21 /// \{
22 bool isA(const void *ClassID) const override {
23 return ClassID == &ID || SymbolFileDWARF::isA(ClassID);
24 }
25 static bool classof(const SymbolFile *obj) { return obj->isA(&ID); }
26 /// \}
27
29 lldb::ObjectFileSP objfile, uint32_t id);
30
31 ~SymbolFileDWARFDwo() override = default;
32
34
36 llvm::function_ref<bool(DWARFDIE die)> callback) override;
37
38 llvm::Expected<lldb::TypeSystemSP>
40
42 GetDIE(const DIERef &die_ref) override;
43
46 const lldb::offset_t data_offset,
47 const uint8_t op) const override;
48
50 uint8_t op, const lldb_private::DataExtractor &opcodes,
51 lldb::offset_t &offset,
52 std::vector<lldb_private::Value> &stack) const override;
53
54protected:
55 DIEToTypePtr &GetDIEToType() override;
56
58
60
62
64
65 lldb::TypeSP
67
69 const DWARFDIE &die, lldb_private::ConstString type_name,
70 bool must_be_implementation) override;
71
73
74 /// If this file contains exactly one compile unit, this function will return
75 /// it. Otherwise it returns nullptr.
77
79};
80
81#endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_SYMBOLFILEDWARFDWO_H
Identifies a DWARF debug info entry within a given Module.
Definition: DIERef.h:28
static bool classof(const SymbolFile *obj)
~SymbolFileDWARFDwo() override=default
DIEToClangType & GetForwardDeclDieToClangType() override
UniqueDWARFASTTypeMap & GetUniqueDWARFASTTypeMap() override
ClangTypeToDIE & GetForwardDeclClangTypeToDie() override
SymbolFileDWARF & GetBaseSymbolFile() const
DWARFCompileUnit * FindSingleCompileUnit()
If this file contains exactly one compile unit, this function will return it.
void GetObjCMethods(lldb_private::ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback) override
lldb::TypeSP FindCompleteObjCDefinitionTypeForDIE(const DWARFDIE &die, lldb_private::ConstString type_name, bool must_be_implementation) override
DIEToTypePtr & GetDIEToType() override
DIEToVariableSP & GetDIEToVariable() override
bool ParseVendorDWARFOpcode(uint8_t op, const lldb_private::DataExtractor &opcodes, lldb::offset_t &offset, std::vector< lldb_private::Value > &stack) const override
llvm::Expected< lldb::TypeSystemSP > GetTypeSystemForLanguage(lldb::LanguageType language) override
lldb::TypeSP FindDefinitionTypeForDWARFDeclContext(const DWARFDIE &die) override
bool isA(const void *ClassID) const override
LLVM RTTI support.
DWARFDIE GetDIE(const DIERef &die_ref) override
lldb::offset_t GetVendorDWARFOpcodeSize(const lldb_private::DataExtractor &data, const lldb::offset_t data_offset, const uint8_t op) const override
DWARFCompileUnit * GetDWOCompileUnitForHash(uint64_t hash)
static char ID
LLVM RTTI support.
SymbolFileDWARF & m_base_symbol_file
llvm::DenseMap< const DWARFDebugInfoEntry *, lldb::VariableSP > DIEToVariableSP
llvm::DenseMap< const DWARFDebugInfoEntry *, lldb_private::Type * > DIEToTypePtr
bool isA(const void *ClassID) const override
LLVM RTTI support.
friend class SymbolFileDWARFDwo
llvm::DenseMap< const DWARFDebugInfoEntry *, lldb::opaque_compiler_type_t > DIEToClangType
llvm::DenseMap< lldb::opaque_compiler_type_t, DIERef > ClangTypeToDIE
A uniqued constant string class.
Definition: ConstString.h:39
An data extractor class.
Definition: DataExtractor.h:48
uint64_t offset_t
Definition: lldb-types.h:87
LanguageType
Programming language type.