1 //===-- DWARFASTParserJava.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_DWARFASTParserJava_h_
11 #define SymbolFileDWARF_DWARFASTParserJava_h_
15 // Other libraries and framework includes
16 #include "llvm/ADT/DenseMap.h"
17 #include "llvm/ADT/SmallPtrSet.h"
18 #include "llvm/ADT/SmallVector.h"
21 #include "DWARFASTParser.h"
23 #include "DWARFDefines.h"
24 #include "lldb/Core/PluginInterface.h"
25 #include "lldb/Symbol/JavaASTContext.h"
27 class DWARFDebugInfoEntry;
28 class DWARFDIECollection;
30 class DWARFASTParserJava : public DWARFASTParser
33 DWARFASTParserJava(lldb_private::JavaASTContext &ast);
34 ~DWARFASTParserJava() override;
37 ParseTypeFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die, lldb_private::Log *log,
38 bool *type_is_new_ptr) override;
40 lldb_private::Function *
41 ParseFunctionFromDWARF(const lldb_private::SymbolContext &sc, const DWARFDIE &die) override;
44 CompleteTypeFromDWARF(const DWARFDIE &die, lldb_private::Type *type,
45 lldb_private::CompilerType &java_type) override;
47 lldb_private::CompilerDeclContext
48 GetDeclContextForUIDFromDWARF(const DWARFDIE &die) override
50 return lldb_private::CompilerDeclContext();
53 lldb_private::CompilerDeclContext
54 GetDeclContextContainingUIDFromDWARF(const DWARFDIE &die) override
56 return lldb_private::CompilerDeclContext();
59 lldb_private::CompilerDecl
60 GetDeclForUIDFromDWARF(const DWARFDIE &die) override
62 return lldb_private::CompilerDecl();
66 GetDIEForDeclContext(lldb_private::CompilerDeclContext decl_context) override
68 return std::vector<DWARFDIE>();
72 ParseChildMembers(const DWARFDIE &parent_die, lldb_private::CompilerType &class_compiler_type);
75 lldb_private::JavaASTContext &m_ast;
78 ParseBaseTypeFromDIE(const DWARFDIE &die);
81 ParseArrayTypeFromDIE(const DWARFDIE &die);
84 ParseReferenceTypeFromDIE(const DWARFDIE &die);
87 ParseClassTypeFromDIE(const DWARFDIE &die, bool &is_new_type);
90 #endif // SymbolFileDWARF_DWARFASTParserJava_h_