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 lldb_private::TypeSystem *
37 GetTypeSystemForLanguage(lldb::LanguageType language) override;
40 GetDIE(const DIERef &die_ref) override;
42 std::unique_ptr<SymbolFileDWARFDwo>
43 GetDwoSymbolFileForCompileUnit(DWARFCompileUnit &dwarf_cu,
44 const DWARFDebugInfoEntry &cu_die) override {
49 void LoadSectionData(lldb::SectionType sect_type,
50 lldb_private::DWARFDataExtractor &data) override;
52 DIEToTypePtr &GetDIEToType() override;
54 DIEToVariableSP &GetDIEToVariable() override;
56 DIEToClangType &GetForwardDeclDieToClangType() override;
58 ClangTypeToDIE &GetForwardDeclClangTypeToDie() override;
60 UniqueDWARFASTTypeMap &GetUniqueDWARFASTTypeMap() override;
62 lldb::TypeSP FindDefinitionTypeForDWARFDeclContext(
63 const DWARFDeclContext &die_decl_ctx) override;
65 SymbolFileDWARF *GetBaseSymbolFile();
67 lldb::ObjectFileSP m_obj_file_sp;
68 DWARFCompileUnit *m_base_dwarf_cu;
71 #endif // SymbolFileDWARFDwo_SymbolFileDWARFDwo_h_