DWARFIndex.h (341825) | DWARFIndex.h (353358) |
---|---|
1//===-- DWARFIndex.h -------------------------------------------*- C++ -*-===// 2// | 1//===-- DWARFIndex.h -------------------------------------------*- C++ -*-===// 2// |
3// The LLVM Compiler Infrastructure | 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 |
4// | 6// |
5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// | |
8//===----------------------------------------------------------------------===// 9 10#ifndef LLDB_DWARFINDEX_H 11#define LLDB_DWARFINDEX_H 12 13#include "Plugins/SymbolFile/DWARF/DIERef.h" 14#include "Plugins/SymbolFile/DWARF/DWARFDIE.h" 15#include "Plugins/SymbolFile/DWARF/DWARFFormValue.h" 16 | 7//===----------------------------------------------------------------------===// 8 9#ifndef LLDB_DWARFINDEX_H 10#define LLDB_DWARFINDEX_H 11 12#include "Plugins/SymbolFile/DWARF/DIERef.h" 13#include "Plugins/SymbolFile/DWARF/DWARFDIE.h" 14#include "Plugins/SymbolFile/DWARF/DWARFFormValue.h" 15 |
17class DWARFDebugInfo; | |
18class DWARFDeclContext; 19class DWARFDIE; 20 21namespace lldb_private { 22class DWARFIndex { 23public: 24 DWARFIndex(Module &module) : m_module(module) {} 25 virtual ~DWARFIndex(); --- 10 unchanged lines hidden (view full) --- 36 virtual void GetGlobalVariables(const DWARFUnit &cu, DIEArray &offsets) = 0; 37 virtual void GetObjCMethods(ConstString class_name, DIEArray &offsets) = 0; 38 virtual void GetCompleteObjCClass(ConstString class_name, 39 bool must_be_implementation, 40 DIEArray &offsets) = 0; 41 virtual void GetTypes(ConstString name, DIEArray &offsets) = 0; 42 virtual void GetTypes(const DWARFDeclContext &context, DIEArray &offsets) = 0; 43 virtual void GetNamespaces(ConstString name, DIEArray &offsets) = 0; | 16class DWARFDeclContext; 17class DWARFDIE; 18 19namespace lldb_private { 20class DWARFIndex { 21public: 22 DWARFIndex(Module &module) : m_module(module) {} 23 virtual ~DWARFIndex(); --- 10 unchanged lines hidden (view full) --- 34 virtual void GetGlobalVariables(const DWARFUnit &cu, DIEArray &offsets) = 0; 35 virtual void GetObjCMethods(ConstString class_name, DIEArray &offsets) = 0; 36 virtual void GetCompleteObjCClass(ConstString class_name, 37 bool must_be_implementation, 38 DIEArray &offsets) = 0; 39 virtual void GetTypes(ConstString name, DIEArray &offsets) = 0; 40 virtual void GetTypes(const DWARFDeclContext &context, DIEArray &offsets) = 0; 41 virtual void GetNamespaces(ConstString name, DIEArray &offsets) = 0; |
44 virtual void GetFunctions(ConstString name, DWARFDebugInfo &info, | 42 virtual void GetFunctions(ConstString name, SymbolFileDWARF &dwarf, |
45 const CompilerDeclContext &parent_decl_ctx, 46 uint32_t name_type_mask, 47 std::vector<DWARFDIE> &dies) = 0; 48 virtual void GetFunctions(const RegularExpression ®ex, 49 DIEArray &offsets) = 0; 50 | 43 const CompilerDeclContext &parent_decl_ctx, 44 uint32_t name_type_mask, 45 std::vector<DWARFDIE> &dies) = 0; 46 virtual void GetFunctions(const RegularExpression ®ex, 47 DIEArray &offsets) = 0; 48 |
51 virtual void ReportInvalidDIEOffset(dw_offset_t offset, 52 llvm::StringRef name) = 0; | 49 virtual void ReportInvalidDIERef(const DIERef &ref, llvm::StringRef name) = 0; |
53 virtual void Dump(Stream &s) = 0; 54 55protected: 56 Module &m_module; 57 58 /// Helper function implementing common logic for processing function dies. If 59 /// the function given by "ref" matches search criteria given by 60 /// "parent_decl_ctx" and "name_type_mask", it is inserted into the "dies" 61 /// vector. 62 void ProcessFunctionDIE(llvm::StringRef name, DIERef ref, | 50 virtual void Dump(Stream &s) = 0; 51 52protected: 53 Module &m_module; 54 55 /// Helper function implementing common logic for processing function dies. If 56 /// the function given by "ref" matches search criteria given by 57 /// "parent_decl_ctx" and "name_type_mask", it is inserted into the "dies" 58 /// vector. 59 void ProcessFunctionDIE(llvm::StringRef name, DIERef ref, |
63 DWARFDebugInfo &info, | 60 SymbolFileDWARF &dwarf, |
64 const CompilerDeclContext &parent_decl_ctx, 65 uint32_t name_type_mask, std::vector<DWARFDIE> &dies); 66}; 67} // namespace lldb_private 68 69#endif // LLDB_DWARFINDEX_H | 61 const CompilerDeclContext &parent_decl_ctx, 62 uint32_t name_type_mask, std::vector<DWARFDIE> &dies); 63}; 64} // namespace lldb_private 65 66#endif // LLDB_DWARFINDEX_H |