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_
15 // Other libraries and framework includes
17 #include "SymbolFileDWARF.h"
19 class SymbolFileDWARFDwo : public SymbolFileDWARF {
21 SymbolFileDWARFDwo(lldb::ObjectFileSP objfile, DWARFCompileUnit *dwarf_cu);
23 ~SymbolFileDWARFDwo() override = default;
25 lldb::CompUnitSP ParseCompileUnit(DWARFCompileUnit *dwarf_cu,
26 uint32_t cu_idx) override;
28 DWARFCompileUnit *GetCompileUnit();
31 GetDWARFCompileUnit(lldb_private::CompileUnit *comp_unit) override;
33 lldb_private::DWARFExpression::LocationListFormat
34 GetLocationListFormat() const override;
36 size_t GetObjCMethodDIEOffsets(lldb_private::ConstString class_name,
37 DIEArray &method_die_offsets) override;
39 lldb_private::TypeSystem *
40 GetTypeSystemForLanguage(lldb::LanguageType language) override;
43 GetDIE(const DIERef &die_ref) override;
45 std::unique_ptr<SymbolFileDWARFDwo>
46 GetDwoSymbolFileForCompileUnit(DWARFCompileUnit &dwarf_cu,
47 const DWARFDebugInfoEntry &cu_die) override {
51 DWARFCompileUnit *GetBaseCompileUnit() override;
54 void LoadSectionData(lldb::SectionType sect_type,
55 lldb_private::DWARFDataExtractor &data) override;
57 DIEToTypePtr &GetDIEToType() override;
59 DIEToVariableSP &GetDIEToVariable() override;
61 DIEToClangType &GetForwardDeclDieToClangType() override;
63 ClangTypeToDIE &GetForwardDeclClangTypeToDie() override;
65 UniqueDWARFASTTypeMap &GetUniqueDWARFASTTypeMap() override;
67 lldb::TypeSP FindDefinitionTypeForDWARFDeclContext(
68 const DWARFDeclContext &die_decl_ctx) override;
70 lldb::TypeSP FindCompleteObjCDefinitionTypeForDIE(
71 const DWARFDIE &die, const lldb_private::ConstString &type_name,
72 bool must_be_implementation) override;
74 SymbolFileDWARF *GetBaseSymbolFile();
76 lldb::ObjectFileSP m_obj_file_sp;
77 DWARFCompileUnit *m_base_dwarf_cu;
80 #endif // SymbolFileDWARFDwo_SymbolFileDWARFDwo_h_