]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDwo.h
Merge clang 7.0.1 and several follow-up changes
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / source / Plugins / SymbolFile / DWARF / SymbolFileDWARFDwo.h
1 //===-- SymbolFileDWARFDwo.h ------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef SymbolFileDWARFDwo_SymbolFileDWARFDwo_h_
11 #define SymbolFileDWARFDwo_SymbolFileDWARFDwo_h_
12
13 // C Includes
14 // C++ Includes
15 // Other libraries and framework includes
16 // Project includes
17 #include "SymbolFileDWARF.h"
18
19 class SymbolFileDWARFDwo : public SymbolFileDWARF {
20 public:
21   SymbolFileDWARFDwo(lldb::ObjectFileSP objfile, DWARFUnit *dwarf_cu);
22
23   ~SymbolFileDWARFDwo() override = default;
24
25   lldb::CompUnitSP ParseCompileUnit(DWARFUnit *dwarf_cu,
26                                     uint32_t cu_idx) override;
27
28   DWARFUnit *GetCompileUnit();
29
30   DWARFUnit *
31   GetDWARFCompileUnit(lldb_private::CompileUnit *comp_unit) override;
32
33   lldb_private::DWARFExpression::LocationListFormat
34   GetLocationListFormat() const override;
35
36   size_t GetObjCMethodDIEOffsets(lldb_private::ConstString class_name,
37                                  DIEArray &method_die_offsets) override;
38
39   lldb_private::TypeSystem *
40   GetTypeSystemForLanguage(lldb::LanguageType language) override;
41
42   DWARFDIE
43   GetDIE(const DIERef &die_ref) override;
44
45   std::unique_ptr<SymbolFileDWARFDwo>
46   GetDwoSymbolFileForCompileUnit(DWARFUnit &dwarf_cu,
47                                  const DWARFDebugInfoEntry &cu_die) override {
48     return nullptr;
49   }
50
51   DWARFUnit *GetBaseCompileUnit() override;
52
53 protected:
54   void LoadSectionData(lldb::SectionType sect_type,
55                        lldb_private::DWARFDataExtractor &data) override;
56
57   DIEToTypePtr &GetDIEToType() override;
58
59   DIEToVariableSP &GetDIEToVariable() override;
60
61   DIEToClangType &GetForwardDeclDieToClangType() override;
62
63   ClangTypeToDIE &GetForwardDeclClangTypeToDie() override;
64
65   UniqueDWARFASTTypeMap &GetUniqueDWARFASTTypeMap() override;
66
67   lldb::TypeSP FindDefinitionTypeForDWARFDeclContext(
68       const DWARFDeclContext &die_decl_ctx) override;
69
70   lldb::TypeSP FindCompleteObjCDefinitionTypeForDIE(
71       const DWARFDIE &die, const lldb_private::ConstString &type_name,
72       bool must_be_implementation) override;
73
74   SymbolFileDWARF *GetBaseSymbolFile();
75
76   lldb::ObjectFileSP m_obj_file_sp;
77   DWARFUnit *m_base_dwarf_cu;
78 };
79
80 #endif // SymbolFileDWARFDwo_SymbolFileDWARFDwo_h_