1 //===-- SymbolFileDWARFDwo.h ------------------------------------*- 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 #ifndef SymbolFileDWARFDwo_SymbolFileDWARFDwo_h_
11 #define SymbolFileDWARFDwo_SymbolFileDWARFDwo_h_
13 #include "SymbolFileDWARF.h"
15 class SymbolFileDWARFDwo : public SymbolFileDWARF {
17 SymbolFileDWARFDwo(lldb::ObjectFileSP objfile, DWARFUnit *dwarf_cu);
19 ~SymbolFileDWARFDwo() override = default;
21 lldb::CompUnitSP ParseCompileUnit(DWARFUnit *dwarf_cu,
22 uint32_t cu_idx) override;
24 DWARFUnit *GetCompileUnit();
27 GetDWARFCompileUnit(lldb_private::CompileUnit *comp_unit) override;
29 lldb_private::DWARFExpression::LocationListFormat
30 GetLocationListFormat() const override;
32 size_t GetObjCMethodDIEOffsets(lldb_private::ConstString class_name,
33 DIEArray &method_die_offsets) override;
35 lldb_private::TypeSystem *
36 GetTypeSystemForLanguage(lldb::LanguageType language) override;
39 GetDIE(const DIERef &die_ref) override;
41 std::unique_ptr<SymbolFileDWARFDwo>
42 GetDwoSymbolFileForCompileUnit(DWARFUnit &dwarf_cu,
43 const DWARFDebugInfoEntry &cu_die) override {
47 DWARFUnit *GetBaseCompileUnit() override;
49 const lldb_private::DWARFDataExtractor &get_debug_abbrev_data() override;
50 const lldb_private::DWARFDataExtractor &get_debug_addr_data() override;
51 const lldb_private::DWARFDataExtractor &get_debug_info_data() override;
52 const lldb_private::DWARFDataExtractor &get_debug_str_data() override;
53 const lldb_private::DWARFDataExtractor &get_debug_str_offsets_data() override;
56 void LoadSectionData(lldb::SectionType sect_type,
57 lldb_private::DWARFDataExtractor &data) override;
59 DIEToTypePtr &GetDIEToType() override;
61 DIEToVariableSP &GetDIEToVariable() override;
63 DIEToClangType &GetForwardDeclDieToClangType() override;
65 ClangTypeToDIE &GetForwardDeclClangTypeToDie() override;
67 UniqueDWARFASTTypeMap &GetUniqueDWARFASTTypeMap() override;
69 lldb::TypeSP FindDefinitionTypeForDWARFDeclContext(
70 const DWARFDeclContext &die_decl_ctx) override;
72 lldb::TypeSP FindCompleteObjCDefinitionTypeForDIE(
73 const DWARFDIE &die, const lldb_private::ConstString &type_name,
74 bool must_be_implementation) override;
76 SymbolFileDWARF *GetBaseSymbolFile();
78 lldb::ObjectFileSP m_obj_file_sp;
79 DWARFUnit *m_base_dwarf_cu;
82 #endif // SymbolFileDWARFDwo_SymbolFileDWARFDwo_h_