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 LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSER_H
10 #define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_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() = default;
28 
29  virtual lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc,
30  const DWARFDIE &die,
31  bool *type_is_new_ptr) = 0;
32 
33  virtual lldb_private::Function *
35  const DWARFDIE &die,
36  const lldb_private::AddressRange &range) = 0;
37 
38  virtual bool
40  lldb_private::CompilerType &compiler_type) = 0;
41 
43  GetDeclForUIDFromDWARF(const DWARFDIE &die) = 0;
44 
47 
50 
52  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 // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSER_H
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
CompilerDecl.h
DWARFASTParser::ParseChildArrayInfo
static llvm::Optional< lldb_private::SymbolFile::ArrayInfo > ParseChildArrayInfo(const DWARFDIE &parent_die, const lldb_private::ExecutionContext *exe_ctx=nullptr)
Definition: DWARFASTParserClang.cpp:3078
SymbolFileDWARF
Definition: SymbolFileDWARF.h:59
lldb_private::CompilerDecl
Represents a generic declaration such as a function declaration.
Definition: CompilerDecl.h:28
lldb_private::SymbolContext
Definition: SymbolContext.h:33
DWARFDefines.h
lldb_private::CompileUnit
Definition: CompileUnit.h:38
DWARFDIE
Definition: DWARFDIE.h:16
lldb_private::Function
Definition: Function.h:413
DWARFASTParser::ParseFunctionFromDWARF
virtual lldb_private::Function * ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit, const DWARFDIE &die, const lldb_private::AddressRange &range)=0
DWARFASTParser::EnsureAllDIEsInDeclContextHaveBeenParsed
virtual void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context)=0
lldb_private::AddressRange
Definition: AddressRange.h:25
DWARFASTParser::GetDeclContextForUIDFromDWARF
virtual lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const DWARFDIE &die)=0
PluginInterface.h
DWARFASTParser::GetDeclContextContainingUIDFromDWARF
virtual lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die)=0
lldb_private::CompilerDeclContext
Represents a generic declaration context in a program.
Definition: CompilerDeclContext.h:30
DWARFASTParser::~DWARFASTParser
virtual ~DWARFASTParser()=default
DWARFASTParser
Definition: DWARFASTParser.h:25
DWARFASTParser::ParseTypeFromDWARF
virtual lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool *type_is_new_ptr)=0
lldb_private::Type
Definition: Type.h:66
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition: CompilerType.h:33
CompilerDeclContext.h
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
DWARFASTParser::CompleteTypeFromDWARF
virtual bool CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type, lldb_private::CompilerType &compiler_type)=0
SymbolFile.h
DWARFASTParser::GetDeclForUIDFromDWARF
virtual lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const DWARFDIE &die)=0