LLDB
mainline
llvm-project
lldb
source
Plugins
SymbolFile
DWARF
DWARFASTParserFortran.h
Go to the documentation of this file.
1
//===----------------------------------------------------------------------===//
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
/// \file
10
/// This file defines the DWARF AST parser for the Fortran language.
11
///
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSERFORTRAN_H
15
#define LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSERFORTRAN_H
16
17
#include "
DWARFASTParser.h
"
18
#include "
Plugins/SymbolFile/DWARF/DWARFDIE.h
"
19
#include "
Plugins/TypeSystem/Fortran/TypeSystemFortran.h
"
20
21
namespace
lldb_private
{
22
class
CompileUnit
;
23
class
ExecutionContext
;
24
}
// namespace lldb_private
25
26
class
DWARFASTParserFortran
27
:
public
lldb_private::plugin::dwarf::DWARFASTParser
{
28
public
:
29
DWARFASTParserFortran
();
30
31
~DWARFASTParserFortran
()
override
;
32
33
lldb::TypeSP
34
ParseTypeFromDWARF
(
const
lldb_private::SymbolContext
&sc,
35
const
lldb_private::plugin::dwarf::DWARFDIE
&die,
36
bool
*type_is_new_ptr)
override
;
37
38
lldb_private::Function
*
39
ParseFunctionFromDWARF
(
lldb_private::CompileUnit
&comp_unit,
40
const
lldb_private::plugin::dwarf::DWARFDIE
&die,
41
lldb_private::AddressRanges
ranges)
override
;
42
43
bool
CompleteTypeFromDWARF
(
44
const
lldb_private::plugin::dwarf::DWARFDIE
&die,
45
lldb_private::Type
*type,
46
const
lldb_private::CompilerType
&compiler_type)
override
;
47
48
lldb_private::ConstString
ConstructDemangledNameFromDWARF
(
49
const
lldb_private::plugin::dwarf::DWARFDIE
&die)
override
{
50
return
lldb_private::ConstString
();
51
}
52
53
lldb_private::CompilerDecl
GetDeclForUIDFromDWARF
(
54
const
lldb_private::plugin::dwarf::DWARFDIE
&die)
override
{
55
return
lldb_private::CompilerDecl
();
56
}
57
58
lldb_private::CompilerDeclContext
GetDeclContextForUIDFromDWARF
(
59
const
lldb_private::plugin::dwarf::DWARFDIE
&die)
override
{
60
return
lldb_private::CompilerDeclContext
();
61
}
62
63
lldb_private::CompilerDeclContext
GetDeclContextContainingUIDFromDWARF
(
64
const
lldb_private::plugin::dwarf::DWARFDIE
&die)
override
{
65
return
lldb_private::CompilerDeclContext
();
66
}
67
68
void
EnsureAllDIEsInDeclContextHaveBeenParsed
(
69
lldb_private::CompilerDeclContext
decl_context)
override
{}
70
71
std::string
GetDIEClassTemplateParams
(
72
lldb_private::plugin::dwarf::DWARFDIE
die)
override
{
73
return
{};
74
}
75
};
76
77
#endif
// LLDB_SOURCE_PLUGINS_SYMBOLFILE_DWARF_DWARFASTPARSERFORTRAN_H
DWARFASTParser.h
DWARFDIE.h
TypeSystemFortran.h
DWARFASTParserFortran::CompleteTypeFromDWARF
bool CompleteTypeFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die, lldb_private::Type *type, const lldb_private::CompilerType &compiler_type) override
Definition
DWARFASTParserFortran.cpp:38
DWARFASTParserFortran::ParseFunctionFromDWARF
lldb_private::Function * ParseFunctionFromDWARF(lldb_private::CompileUnit &comp_unit, const lldb_private::plugin::dwarf::DWARFDIE &die, lldb_private::AddressRanges ranges) override
Definition
DWARFASTParserFortran.cpp:31
DWARFASTParserFortran::GetDeclContextForUIDFromDWARF
lldb_private::CompilerDeclContext GetDeclContextForUIDFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die) override
Definition
DWARFASTParserFortran.h:58
DWARFASTParserFortran::~DWARFASTParserFortran
~DWARFASTParserFortran() override
Definition
DWARFASTParserFortran.cpp:23
DWARFASTParserFortran::GetDIEClassTemplateParams
std::string GetDIEClassTemplateParams(lldb_private::plugin::dwarf::DWARFDIE die) override
Definition
DWARFASTParserFortran.h:71
DWARFASTParserFortran::ConstructDemangledNameFromDWARF
lldb_private::ConstString ConstructDemangledNameFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die) override
Definition
DWARFASTParserFortran.h:48
DWARFASTParserFortran::GetDeclContextContainingUIDFromDWARF
lldb_private::CompilerDeclContext GetDeclContextContainingUIDFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die) override
Definition
DWARFASTParserFortran.h:63
DWARFASTParserFortran::DWARFASTParserFortran
DWARFASTParserFortran()
Definition
DWARFASTParserFortran.cpp:19
DWARFASTParserFortran::EnsureAllDIEsInDeclContextHaveBeenParsed
void EnsureAllDIEsInDeclContextHaveBeenParsed(lldb_private::CompilerDeclContext decl_context) override
Definition
DWARFASTParserFortran.h:68
DWARFASTParserFortran::GetDeclForUIDFromDWARF
lldb_private::CompilerDecl GetDeclForUIDFromDWARF(const lldb_private::plugin::dwarf::DWARFDIE &die) override
Definition
DWARFASTParserFortran.h:53
DWARFASTParserFortran::ParseTypeFromDWARF
lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const lldb_private::plugin::dwarf::DWARFDIE &die, bool *type_is_new_ptr) override
Definition
DWARFASTParserFortran.cpp:25
lldb_private::AddressRanges
Definition
AddressRange.h:246
lldb_private::CompileUnit
A class that describes a compilation unit.
Definition
CompileUnit.h:43
lldb_private::CompilerDeclContext
Represents a generic declaration context in a program.
Definition
CompilerDeclContext.h:31
lldb_private::CompilerDecl
Represents a generic declaration such as a function declaration.
Definition
CompilerDecl.h:28
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition
CompilerType.h:37
lldb_private::ConstString
A uniqued constant string class.
Definition
ConstString.h:40
lldb_private::ExecutionContext
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Definition
ExecutionContext.h:295
lldb_private::Function
A class that describes a function.
Definition
Function.h:377
lldb_private::SymbolContext
Defines a symbol context baton that can be handed other debug core functions.
Definition
SymbolContext.h:37
lldb_private::Type
Definition
Type.h:417
lldb_private::plugin::dwarf::DWARFASTParser
Definition
DWARFASTParser.h:30
lldb_private::plugin::dwarf::DWARFDIE
Definition
DWARFDIE.h:19
lldb_private
A class that represents a running process on the host machine.
Definition
SBAddressRange.h:14
lldb::TypeSP
std::shared_ptr< lldb_private::Type > TypeSP
Definition
lldb-forward.h:499
Generated on
for LLDB by
1.14.0