1 //===-- DWARFASTParser.h ----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef SymbolFileDWARF_DWARFASTParser_h_
11 #define SymbolFileDWARF_DWARFASTParser_h_
13 #include "DWARFDefines.h"
14 #include "lldb/Core/PluginInterface.h"
15 #include "lldb/Symbol/CompilerDecl.h"
16 #include "lldb/Symbol/CompilerDeclContext.h"
20 class DWARFASTParser {
22 virtual ~DWARFASTParser() {}
24 virtual lldb::TypeSP ParseTypeFromDWARF(const lldb_private::SymbolContext &sc,
26 lldb_private::Log *log,
27 bool *type_is_new_ptr) = 0;
29 virtual lldb_private::Function *
30 ParseFunctionFromDWARF(const lldb_private::SymbolContext &sc,
31 const DWARFDIE &die) = 0;
34 CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type,
35 lldb_private::CompilerType &compiler_type) = 0;
37 virtual lldb_private::CompilerDecl
38 GetDeclForUIDFromDWARF(const DWARFDIE &die) = 0;
40 virtual lldb_private::CompilerDeclContext
41 GetDeclContextForUIDFromDWARF(const DWARFDIE &die) = 0;
43 virtual lldb_private::CompilerDeclContext
44 GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die) = 0;
46 virtual std::vector<DWARFDIE>
47 GetDIEForDeclContext(lldb_private::CompilerDeclContext decl_context) = 0;
50 #endif // SymbolFileDWARF_DWARFASTParser_h_