LLDB  mainline
DWARFASTParser.h
Go to the documentation of this file.
1 //===-- DWARFASTParser.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 SymbolFileDWARF_DWARFASTParser_h_
10 #define SymbolFileDWARF_DWARFASTParser_h_
11 
12 #include "DWARFDefines.h"
14 #include "lldb/Symbol/SymbolFile.h"
17 
18 class DWARFDIE;
19 namespace lldb_private {
20 class CompileUnit;
21 class ExecutionContext;
22 }
23 class SymbolFileDWARF;
24 
26 public:
27  virtual ~DWARFASTParser() {}
28 
29  virtual lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc,
30  const DWARFDIE &die,
31  lldb_private::Log *log,
32  bool *type_is_new_ptr) = 0;
33 
34  virtual lldb_private::Function *
35  ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit,
36  const DWARFDIE &die) = 0;
37 
38  virtual bool
39  CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type,
40  lldb_private::CompilerType &compiler_type) = 0;
41 
43  GetDeclForUIDFromDWARF(const DWARFDIE &die) = 0;
44 
46  GetDeclContextForUIDFromDWARF(const DWARFDIE &die) = 0;
47 
49  GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die) = 0;
50 
51  virtual std::vector<DWARFDIE>
52  GetDIEForDeclContext(lldb_private::CompilerDeclContext decl_context) = 0;
53 
54  static llvm::Optional<lldb_private::SymbolFile::ArrayInfo>
55  ParseChildArrayInfo(const DWARFDIE &parent_die,
56  const lldb_private::ExecutionContext *exe_ctx = nullptr);
57 };
58 
59 #endif // SymbolFileDWARF_DWARFASTParser_h_
Enumerations for broadcasting.
Definition: SBLaunchInfo.h:14
Defines a symbol context baton that can be handed other debug core functions.
Definition: SymbolContext.h:33
A class that describes a function.
Definition: Function.h:323
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
A class that describes a compilation unit.
Definition: CompileUnit.h:35
virtual ~DWARFASTParser()