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() {}
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) = 0;
36 
37  virtual bool
39  lldb_private::CompilerType &compiler_type) = 0;
40 
42  GetDeclForUIDFromDWARF(const DWARFDIE &die) = 0;
43 
46 
49 
51  lldb_private::CompilerDeclContext decl_context) = 0;
52 
53  static llvm::Optional<lldb_private::SymbolFile::ArrayInfo>
54  ParseChildArrayInfo(const DWARFDIE &parent_die,
55  const lldb_private::ExecutionContext *exe_ctx = nullptr);
56 };
57 
58 #endif // LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSER_H
lldb_private::ExecutionContext
Definition: ExecutionContext.h:291
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:3048
SymbolFileDWARF
Definition: SymbolFileDWARF.h:58
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:15
lldb_private::Function
Definition: Function.h:413
DWARFASTParser::EnsureAllDIEsInDeclContextHaveBeenParsed
virtual void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context)=0
DWARFASTParser::GetDeclContextForUIDFromDWARF
virtual lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const DWARFDIE &die)=0
PluginInterface.h
DWARFASTParser::GetDeclContextContainingUIDFromDWARF
virtual lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die)=0
DWARFASTParser::~DWARFASTParser
virtual ~DWARFASTParser()
Definition: DWARFASTParser.h:27
lldb_private::CompilerDeclContext
Represents a generic declaration context in a program.
Definition: CompilerDeclContext.h:30
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
DWARFASTParser::ParseFunctionFromDWARF
virtual lldb_private::Function * ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit, const DWARFDIE &die)=0
SymbolFile.h
DWARFASTParser::GetDeclForUIDFromDWARF
virtual lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const DWARFDIE &die)=0