LLDB  mainline
Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Attributes | List of all members
SymbolFileDWARFDwo Class Reference

#include <SymbolFileDWARFDwo.h>

Inheritance diagram for SymbolFileDWARFDwo:
Inheritance graph
[legend]
Collaboration diagram for SymbolFileDWARFDwo:
Collaboration graph
[legend]

Public Member Functions

 SymbolFileDWARFDwo (SymbolFileDWARF &m_base_symbol_file, lldb::ObjectFileSP objfile, uint32_t id)
 
 ~SymbolFileDWARFDwo () override=default
 
DWARFCompileUnitGetDWOCompileUnitForHash (uint64_t hash)
 
void GetObjCMethods (lldb_private::ConstString class_name, llvm::function_ref< bool(DWARFDIE die)> callback) override
 
llvm::Expected< lldb_private::TypeSystem & > GetTypeSystemForLanguage (lldb::LanguageType language) override
 
DWARFDIE GetDIE (const DIERef &die_ref) override
 
llvm::Optional< uint32_tGetDwoNum () override
 
- Public Member Functions inherited from SymbolFileDWARF
 SymbolFileDWARF (lldb::ObjectFileSP objfile_sp, lldb_private::SectionList *dwo_section_list)
 
 ~SymbolFileDWARF () override
 
uint32_t CalculateAbilities () override
 
void InitializeObject () override
 Initialize the SymbolFile object. More...
 
lldb::LanguageType ParseLanguage (lldb_private::CompileUnit &comp_unit) override
 
lldb_private::XcodeSDK ParseXcodeSDK (lldb_private::CompileUnit &comp_unit) override
 Return the Xcode SDK comp_unit was compiled against. More...
 
size_t ParseFunctions (lldb_private::CompileUnit &comp_unit) override
 
bool ParseLineTable (lldb_private::CompileUnit &comp_unit) override
 
bool ParseDebugMacros (lldb_private::CompileUnit &comp_unit) override
 
bool ForEachExternalModule (lldb_private::CompileUnit &, llvm::DenseSet< lldb_private::SymbolFile * > &, llvm::function_ref< bool(lldb_private::Module &)>) override
 
bool ParseSupportFiles (lldb_private::CompileUnit &comp_unit, lldb_private::FileSpecList &support_files) override
 
bool ParseIsOptimized (lldb_private::CompileUnit &comp_unit) override
 
size_t ParseTypes (lldb_private::CompileUnit &comp_unit) override
 
bool ParseImportedModules (const lldb_private::SymbolContext &sc, std::vector< lldb_private::SourceModule > &imported_modules) override
 
size_t ParseBlocksRecursive (lldb_private::Function &func) override
 
size_t ParseVariablesForContext (const lldb_private::SymbolContext &sc) override
 
lldb_private::TypeResolveTypeUID (lldb::user_id_t type_uid) override
 
llvm::Optional< ArrayInfoGetDynamicArrayInfoForUID (lldb::user_id_t type_uid, const lldb_private::ExecutionContext *exe_ctx) override
 If type_uid points to an array type, return its characteristics. More...
 
bool CompleteType (lldb_private::CompilerType &compiler_type) override
 
lldb_private::TypeResolveType (const DWARFDIE &die, bool assert_not_being_parsed=true, bool resolve_function_context=false)
 
lldb_private::CompilerDecl GetDeclForUID (lldb::user_id_t uid) override
 
lldb_private::CompilerDeclContext GetDeclContextForUID (lldb::user_id_t uid) override
 
lldb_private::CompilerDeclContext GetDeclContextContainingUID (lldb::user_id_t uid) override
 
void ParseDeclsForContext (lldb_private::CompilerDeclContext decl_ctx) override
 
uint32_t ResolveSymbolContext (const lldb_private::Address &so_addr, lldb::SymbolContextItem resolve_scope, lldb_private::SymbolContext &sc) override
 
uint32_t ResolveSymbolContext (const lldb_private::SourceLocationSpec &src_location_spec, lldb::SymbolContextItem resolve_scope, lldb_private::SymbolContextList &sc_list) override
 
void FindGlobalVariables (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, lldb_private::VariableList &variables) override
 
void FindGlobalVariables (const lldb_private::RegularExpression &regex, uint32_t max_matches, lldb_private::VariableList &variables) override
 
void FindFunctions (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx, lldb::FunctionNameType name_type_mask, bool include_inlines, lldb_private::SymbolContextList &sc_list) override
 
void FindFunctions (const lldb_private::RegularExpression &regex, bool include_inlines, lldb_private::SymbolContextList &sc_list) override
 
void GetMangledNamesForFunction (const std::string &scope_qualified_name, std::vector< lldb_private::ConstString > &mangled_names) override
 
void FindTypes (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, llvm::DenseSet< lldb_private::SymbolFile * > &searched_symbol_files, lldb_private::TypeMap &types) override
 
void FindTypes (llvm::ArrayRef< lldb_private::CompilerContext > pattern, lldb_private::LanguageSet languages, llvm::DenseSet< SymbolFile * > &searched_symbol_files, lldb_private::TypeMap &types) override
 
void GetTypes (lldb_private::SymbolContextScope *sc_scope, lldb::TypeClass type_mask, lldb_private::TypeList &type_list) override
 
lldb_private::CompilerDeclContext FindNamespace (lldb_private::ConstString name, const lldb_private::CompilerDeclContext &parent_decl_ctx) override
 
void PreloadSymbols () override
 
std::recursive_mutex & GetModuleMutex () const override
 Symbols file subclasses should override this to return the Module that owns the TypeSystem that this symbol file modifies type information in. More...
 
llvm::StringRef GetPluginName () override
 
DWARFDebugAbbrevDebugAbbrev ()
 
DWARFDebugInfoDebugInfo ()
 
DWARFDebugRangesGetDebugRanges ()
 
DWARFDIE GetDeclContextDIEContainingDIE (const DWARFDIE &die)
 
bool HasForwardDeclForClangType (const lldb_private::CompilerType &compiler_type)
 
lldb_private::CompileUnitGetCompUnitForDWARFCompUnit (DWARFCompileUnit &dwarf_cu)
 
bool Supports_DW_AT_APPLE_objc_complete_type (DWARFUnit *cu)
 
lldb_private::DebugMacrosSP ParseDebugMacros (lldb::offset_t *offset)
 
lldb::ModuleSP GetExternalModule (lldb_private::ConstString name)
 
const ExternalTypeModuleMapgetExternalTypeModules () const
 Return the list of Clang modules imported by this SymbolFile. More...
 
DWARFDIE GetDIE (lldb::user_id_t uid)
 
lldb::user_id_t GetUID (const DWARFBaseDIE &die)
 
lldb::user_id_t GetUID (const llvm::Optional< DIERef > &ref)
 
lldb::user_id_t GetUID (DIERef ref)
 
std::shared_ptr< SymbolFileDWARFDwoGetDwoSymbolFileForCompileUnit (DWARFUnit &dwarf_cu, const DWARFDebugInfoEntry &cu_die)
 
llvm::Optional< uint64_t > GetDWOId ()
 If this is a DWARF object with a single CU, return its DW_AT_dwo_id. More...
 
std::vector< std::unique_ptr< lldb_private::CallEdge > > ParseCallEdgesInFunction (UserID func_id) override
 
void Dump (lldb_private::Stream &s) override
 
void DumpClangAST (lldb_private::Stream &s) override
 
lldb_private::DWARFContextGetDWARFContext ()
 
const std::shared_ptr< SymbolFileDWARFDwo > & GetDwpSymbolFile ()
 
lldb_private::FileSpec GetFile (DWARFUnit &unit, size_t file_idx)
 
lldb_private::StatsDuration::Duration GetDebugInfoParseTime () override
 Return the time taken to parse the debug information. More...
 
lldb_private::StatsDuration::Duration GetDebugInfoIndexTime () override
 Return the time it took to index the debug information in the object file. More...
 
lldb_private::StatsDurationGetDebugInfoParseTimeRef ()
 
- Public Member Functions inherited from lldb_private::SymbolFileCommon
 SymbolFileCommon (lldb::ObjectFileSP objfile_sp)
 
 ~SymbolFileCommon () override=default
 
uint32_t GetAbilities () override
 Get a mask of what this symbol file supports for the object file that it was constructed with. More...
 
SymtabGetSymtab () override
 
ObjectFileGetObjectFile () override
 
const ObjectFileGetObjectFile () const override
 
ObjectFileGetMainObjectFile () override
 
void SectionFileAddressesChanged () override
 Notify the SymbolFile that the file addresses in the Sections for this module have been changed. More...
 
uint32_t GetNumCompileUnits () override
 
lldb::CompUnitSP GetCompileUnitAtIndex (uint32_t idx) override
 
uint64_t GetDebugInfoSize () override
 Metrics gathering functions. More...
 
bool GetDebugInfoIndexWasLoadedFromCache () const override
 Accessors for the bool that indicates if the debug info index was loaded from, or saved to the module index cache. More...
 
void SetDebugInfoIndexWasLoadedFromCache () override
 
bool GetDebugInfoIndexWasSavedToCache () const override
 
void SetDebugInfoIndexWasSavedToCache () override
 
- Public Member Functions inherited from lldb_private::SymbolFile
 SymbolFile ()=default
 
 ~SymbolFile () override=default
 
virtual SymbolFileGetBackingSymbolFile ()
 SymbolFileOnDemand class overrides this to return the underlying backing SymbolFile implementation that loads on-demand. More...
 
virtual bool GetLoadDebugInfoEnabled ()
 Whether debug info will be loaded or not. More...
 
virtual void SetLoadDebugInfoEnabled ()
 Specify debug info should be loaded. More...
 
virtual bool ForEachExternalModule (lldb_private::CompileUnit &comp_unit, llvm::DenseSet< lldb_private::SymbolFile * > &visited_symbol_files, llvm::function_ref< bool(Module &)> lambda)
 Apply a lambda to each external lldb::Module referenced by this comp_unit. More...
 
virtual bool ParseSupportFiles (CompileUnit &comp_unit, FileSpecList &support_files)=0
 
virtual void FindTypes (ConstString name, const CompilerDeclContext &parent_decl_ctx, uint32_t max_matches, llvm::DenseSet< lldb_private::SymbolFile * > &searched_symbol_files, TypeMap &types)
 
virtual void FindTypes (llvm::ArrayRef< CompilerContext > pattern, LanguageSet languages, llvm::DenseSet< lldb_private::SymbolFile * > &searched_symbol_files, TypeMap &types)
 Find types specified by a CompilerContextPattern. More...
 
virtual std::vector< std::unique_ptr< CallEdge > > ParseCallEdgesInFunction (UserID func_id)
 
virtual void AddSymbols (Symtab &symtab)
 
virtual lldb::UnwindPlanSP GetUnwindPlan (const Address &address, const RegisterInfoResolver &resolver)
 
virtual llvm::Expected< lldb::addr_tGetParameterStackSize (Symbol &symbol)
 Return the number of stack bytes taken up by the parameters to this function. More...
 
virtual ModuleList GetDebugInfoModules ()
 Get the additional modules that this symbol file uses to parse debug info. More...
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (const PluginInterface &)=delete
 
- Public Member Functions inherited from lldb_private::UserID
 UserID (lldb::user_id_t uid=LLDB_INVALID_UID)
 Construct with optional user ID. More...
 
 ~UserID ()=default
 Destructor. More...
 
void Clear ()
 Clears the object state. More...
 
lldb::user_id_t GetID () const
 Get accessor for the user ID. More...
 
void SetID (lldb::user_id_t uid)
 Set accessor for the user ID. More...
 

Protected Member Functions

DIEToTypePtrGetDIEToType () override
 
DIEToVariableSPGetDIEToVariable () override
 
DIEToClangTypeGetForwardDeclDieToClangType () override
 
ClangTypeToDIEGetForwardDeclClangTypeToDie () override
 
UniqueDWARFASTTypeMapGetUniqueDWARFASTTypeMap () override
 
lldb::TypeSP FindDefinitionTypeForDWARFDeclContext (const DWARFDeclContext &die_decl_ctx) override
 
lldb::TypeSP FindCompleteObjCDefinitionTypeForDIE (const DWARFDIE &die, lldb_private::ConstString type_name, bool must_be_implementation) override
 
SymbolFileDWARFGetBaseSymbolFile ()
 
DWARFCompileUnitFindSingleCompileUnit ()
 If this file contains exactly one compile unit, this function will return it. More...
 
- Protected Member Functions inherited from SymbolFileDWARF
 SymbolFileDWARF (const SymbolFileDWARF &)=delete
 
const SymbolFileDWARFoperator= (const SymbolFileDWARF &)=delete
 
virtual void LoadSectionData (lldb::SectionType sect_type, lldb_private::DWARFDataExtractor &data)
 
bool DeclContextMatchesThisSymbolFile (const lldb_private::CompilerDeclContext &decl_ctx)
 
uint32_t CalculateNumCompileUnits () override
 
lldb::CompUnitSP ParseCompileUnitAtIndex (uint32_t index) override
 
lldb_private::TypeListGetTypeList () override
 
lldb::CompUnitSP ParseCompileUnit (DWARFCompileUnit &dwarf_cu)
 
virtual DWARFCompileUnitGetDWARFCompileUnit (lldb_private::CompileUnit *comp_unit)
 
DWARFUnitGetNextUnparsedDWARFCompileUnit (DWARFUnit *prev_cu)
 
bool GetFunction (const DWARFDIE &die, lldb_private::SymbolContext &sc)
 
lldb_private::FunctionParseFunction (lldb_private::CompileUnit &comp_unit, const DWARFDIE &die)
 
size_t ParseBlocksRecursive (lldb_private::CompileUnit &comp_unit, lldb_private::Block *parent_block, const DWARFDIE &die, lldb::addr_t subprogram_low_pc, uint32_t depth)
 
size_t ParseTypes (const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool parse_siblings, bool parse_children)
 
lldb::TypeSP ParseType (const lldb_private::SymbolContext &sc, const DWARFDIE &die, bool *type_is_new)
 
bool ParseSupportFiles (DWARFUnit &dwarf_cu, const lldb::ModuleSP &module, lldb_private::FileSpecList &support_files)
 
lldb_private::TypeResolveTypeUID (const DWARFDIE &die, bool assert_not_being_parsed)
 
lldb_private::TypeResolveTypeUID (const DIERef &die_ref)
 
lldb::VariableSP ParseVariableDIE (const lldb_private::SymbolContext &sc, const DWARFDIE &die, const lldb::addr_t func_low_pc)
 
lldb::VariableSP ParseVariableDIECached (const lldb_private::SymbolContext &sc, const DWARFDIE &die)
 
void ParseAndAppendGlobalVariable (const lldb_private::SymbolContext &sc, const DWARFDIE &die, lldb_private::VariableList &cc_variable_list)
 
size_t ParseVariablesInFunctionContext (const lldb_private::SymbolContext &sc, const DWARFDIE &die, const lldb::addr_t func_low_pc)
 
size_t ParseVariablesInFunctionContextRecursive (const lldb_private::SymbolContext &sc, const DWARFDIE &die, lldb::addr_t func_low_pc, DIEArray &accumulator)
 
size_t PopulateBlockVariableList (lldb_private::VariableList &variable_list, const lldb_private::SymbolContext &sc, llvm::ArrayRef< DIERef > variable_dies, lldb::addr_t func_low_pc)
 
DIEArray MergeBlockAbstractParameters (const DWARFDIE &block_die, DIEArray &&variable_dies)
 
bool ClassOrStructIsVirtual (const DWARFDIE &die)
 
bool ResolveFunction (const DWARFDIE &die, bool include_inlines, lldb_private::SymbolContextList &sc_list)
 
void ResolveFunctionAndBlock (lldb::addr_t file_vm_addr, bool lookup_block, lldb_private::SymbolContext &sc)
 Resolve functions and (possibly) blocks for the given file address and a compile unit. More...
 
lldb_private::SymbolGetObjCClassSymbol (lldb_private::ConstString objc_class_name)
 
lldb::TypeSP GetTypeForDIE (const DWARFDIE &die, bool resolve_function_context=false)
 
void SetDebugMapModule (const lldb::ModuleSP &module_sp)
 
SymbolFileDWARFDebugMapGetDebugMapSymfile ()
 
DWARFDIE FindBlockContainingSpecification (const DIERef &func_die_ref, dw_offset_t spec_block_die_offset)
 
DWARFDIE FindBlockContainingSpecification (const DWARFDIE &die, dw_offset_t spec_block_die_offset)
 
bool DIEDeclContextsMatch (const DWARFDIE &die1, const DWARFDIE &die2)
 
bool ClassContainsSelector (const DWARFDIE &class_die, lldb_private::ConstString selector)
 
std::vector< std::unique_ptr< lldb_private::CallEdge > > CollectCallEdges (lldb::ModuleSP module, DWARFDIE function_die)
 Parse call site entries (DW_TAG_call_site), including any nested call site parameters (DW_TAG_call_site_parameter). More...
 
lldb::addr_t FixupAddress (lldb::addr_t file_addr)
 If this symbol file is linked to by a debug map (see SymbolFileDWARFDebugMap), and file_addr is a file address relative to an object file, adjust file_addr so that it is relative to the main binary. More...
 
bool FixupAddress (lldb_private::Address &addr)
 
void GetTypes (const DWARFDIE &die, dw_offset_t min_die_offset, dw_offset_t max_die_offset, uint32_t type_mask, TypeSet &type_set)
 
GlobalVariableMapGetGlobalAranges ()
 
void UpdateExternalModuleListIfNeeded ()
 
void BuildCuTranslationTable ()
 
llvm::Optional< uint32_tGetDWARFUnitIndex (uint32_t cu_idx)
 
llvm::Optional< DecodedUIDDecodeUID (lldb::user_id_t uid)
 
void FindDwpSymbolFile ()
 
const lldb_private::FileSpecList & GetTypeUnitSupportFiles (DWARFTypeUnit &tu)
 
void InitializeFirstCodeAddressRecursive (const lldb_private::SectionList &section_list)
 
void InitializeFirstCodeAddress ()
 
- Protected Member Functions inherited from lldb_private::SymbolFileCommon
void SetCompileUnitAtIndex (uint32_t idx, const lldb::CompUnitSP &cu_sp)
 
- Protected Member Functions inherited from lldb_private::SymbolFile
void AssertModuleLock ()
 

Protected Attributes

SymbolFileDWARFm_base_symbol_file
 
- Protected Attributes inherited from SymbolFileDWARF
lldb::ModuleWP m_debug_map_module_wp
 
SymbolFileDWARFDebugMapm_debug_map_symfile
 
llvm::once_flag m_dwp_symfile_once_flag
 
std::shared_ptr< SymbolFileDWARFDwom_dwp_symfile
 
lldb_private::DWARFContext m_context
 
llvm::once_flag m_info_once_flag
 
std::unique_ptr< DWARFDebugInfom_info
 
std::unique_ptr< DWARFDebugAbbrevm_abbr
 
std::unique_ptr< GlobalVariableMapm_global_aranges_up
 
DebugMacrosMap m_debug_macros_map
 
ExternalTypeModuleMap m_external_type_modules
 
std::unique_ptr< lldb_private::DWARFIndexm_index
 
bool m_fetched_external_modules: 1
 
lldb_private::LazyBool m_supports_DW_AT_APPLE_objc_complete_type
 
NameToOffsetMap m_function_scope_qualified_name_map
 
std::unique_ptr< DWARFDebugRangesm_ranges
 
UniqueDWARFASTTypeMap m_unique_ast_type_map
 
DIEToTypePtr m_die_to_type
 
DIEToVariableSP m_die_to_variable_sp
 
DIEToClangType m_forward_decl_die_to_clang_type
 
ClangTypeToDIE m_forward_decl_clang_type_to_die
 
llvm::DenseMap< dw_offset_t, lldb_private::FileSpecList > m_type_unit_support_files
 
std::vector< uint32_tm_lldb_cu_to_dwarf_unit
 
lldb::addr_t m_first_code_address = LLDB_INVALID_ADDRESS
 DWARF does not provide a good way for traditional (concatenating) linkers to invalidate debug info describing dead-stripped code. More...
 
lldb_private::StatsDuration m_parse_time
 
std::atomic_flag m_dwo_warning_issued = ATOMIC_FLAG_INIT
 
- Protected Attributes inherited from lldb_private::SymbolFileCommon
lldb::ObjectFileSP m_objfile_sp
 
llvm::Optional< std::vector< lldb::CompUnitSP > > m_compile_units
 
TypeList m_type_list
 
Symtabm_symtab = nullptr
 
uint32_t m_abilities = 0
 
bool m_calculated_abilities = false
 
bool m_index_was_loaded_from_cache = false
 
bool m_index_was_saved_to_cache = false
 
- Protected Attributes inherited from lldb_private::UserID
lldb::user_id_t m_uid
 The user ID that uniquely identifies an object. More...
 

Static Private Attributes

static char ID
 LLVM RTTI support. More...
 
bool isA (const void *ClassID) const override
 LLVM RTTI support. More...
 
static bool classof (const SymbolFile *obj)
 

Additional Inherited Members

- Public Types inherited from SymbolFileDWARF
typedef std::map< lldb_private::ConstString, lldb::ModuleSP > ExternalTypeModuleMap
 
- Public Types inherited from lldb_private::SymbolFile
enum  Abilities {
  CompileUnits = (1u << 0), LineTables = (1u << 1), Functions = (1u << 2), Blocks = (1u << 3),
  GlobalVariables = (1u << 4), LocalVariables = (1u << 5), VariableTypes = (1u << 6), kAllAbilities = ((1u << 7) - 1u)
}
 
- Static Public Member Functions inherited from SymbolFileDWARF
static void Initialize ()
 
static void Terminate ()
 
static void DebuggerInitialize (lldb_private::Debugger &debugger)
 
static llvm::StringRef GetPluginNameStatic ()
 
static llvm::StringRef GetPluginDescriptionStatic ()
 
static lldb_private::SymbolFileCreateInstance (lldb::ObjectFileSP objfile_sp)
 
static bool SupportedVersion (uint16_t version)
 
static DWARFDIE GetParentSymbolContextDIE (const DWARFDIE &die)
 
static bool DIEInDeclContext (const lldb_private::CompilerDeclContext &parent_decl_ctx, const DWARFDIE &die)
 
static llvm::Expected< lldb_private::TypeSystem & > GetTypeSystem (DWARFUnit &unit)
 
static DWARFASTParserGetDWARFParser (DWARFUnit &unit)
 
static lldb_private::CompilerDecl GetDecl (const DWARFDIE &die)
 
static lldb_private::CompilerDeclContext GetDeclContext (const DWARFDIE &die)
 
static lldb_private::CompilerDeclContext GetContainingDeclContext (const DWARFDIE &die)
 
static DWARFDeclContext GetDWARFDeclContext (const DWARFDIE &die)
 
static lldb::LanguageType LanguageTypeFromDWARF (uint64_t val)
 
static lldb::LanguageType GetLanguage (DWARFUnit &unit)
 
static lldb::LanguageType GetLanguageFamily (DWARFUnit &unit)
 Same as GetLanguage() but reports all C++ versions as C++ (no version). More...
 
static bool classof (const SymbolFile *obj)
 
- Static Public Member Functions inherited from lldb_private::SymbolFileCommon
static bool classof (const SymbolFileCommon *obj)
 
- Static Public Member Functions inherited from lldb_private::SymbolFile
static SymbolFileFindPlugin (lldb::ObjectFileSP objfile_sp)
 
static bool classof (const SymbolFile *obj)
 
- Protected Types inherited from SymbolFileDWARF
typedef llvm::DenseMap< const DWARFDebugInfoEntry *, lldb_private::Type * > DIEToTypePtr
 
typedef llvm::DenseMap< const DWARFDebugInfoEntry *, lldb::VariableSP > DIEToVariableSP
 
typedef llvm::DenseMap< const DWARFDebugInfoEntry *, lldb::opaque_compiler_type_tDIEToClangType
 
typedef llvm::DenseMap< lldb::opaque_compiler_type_t, DIERefClangTypeToDIE
 
typedef llvm::SetVector< lldb_private::Type * > TypeSet
 
typedef lldb_private::RangeDataVector< lldb::addr_t, lldb::addr_t, lldb_private::Variable * > GlobalVariableMap
 
typedef std::unordered_map< lldb::offset_t, lldb_private::DebugMacrosSPDebugMacrosMap
 
typedef std::set< DIERefDIERefSet
 
typedef llvm::StringMap< DIERefSetNameToOffsetMap
 

Detailed Description

Definition at line 14 of file SymbolFileDWARFDwo.h.

Constructor & Destructor Documentation

◆ SymbolFileDWARFDwo()

SymbolFileDWARFDwo::SymbolFileDWARFDwo ( SymbolFileDWARF m_base_symbol_file,
lldb::ObjectFileSP  objfile,
uint32_t  id 
)

◆ ~SymbolFileDWARFDwo()

SymbolFileDWARFDwo::~SymbolFileDWARFDwo ( )
overridedefault

Member Function Documentation

◆ classof()

static bool SymbolFileDWARFDwo::classof ( const SymbolFile obj)
inlinestatic

Definition at line 24 of file SymbolFileDWARFDwo.h.

References ID.

◆ FindCompleteObjCDefinitionTypeForDIE()

lldb::TypeSP SymbolFileDWARFDwo::FindCompleteObjCDefinitionTypeForDIE ( const DWARFDIE die,
lldb_private::ConstString  type_name,
bool  must_be_implementation 
)
overrideprotectedvirtual

◆ FindDefinitionTypeForDWARFDeclContext()

lldb::TypeSP SymbolFileDWARFDwo::FindDefinitionTypeForDWARFDeclContext ( const DWARFDeclContext die_decl_ctx)
overrideprotectedvirtual

◆ FindSingleCompileUnit()

DWARFCompileUnit * SymbolFileDWARFDwo::FindSingleCompileUnit ( )
protected

If this file contains exactly one compile unit, this function will return it.

Otherwise it returns nullptr.

Definition at line 57 of file SymbolFileDWARFDwo.cpp.

References DWARFDebugInfo::ContainsTypeUnits(), SymbolFileDWARF::DebugInfo(), DWARFDebugInfo::GetNumUnits(), and DWARFDebugInfo::GetUnitAtIndex().

Referenced by GetDWOCompileUnitForHash().

◆ GetBaseSymbolFile()

SymbolFileDWARF& SymbolFileDWARFDwo::GetBaseSymbolFile ( )
inlineprotected

◆ GetDIE()

DWARFDIE SymbolFileDWARFDwo::GetDIE ( const DIERef die_ref)
overridevirtual

◆ GetDIEToType()

SymbolFileDWARF::DIEToTypePtr & SymbolFileDWARFDwo::GetDIEToType ( )
overrideprotectedvirtual

Reimplemented from SymbolFileDWARF.

Definition at line 79 of file SymbolFileDWARFDwo.cpp.

References GetBaseSymbolFile(), and SymbolFileDWARF::GetDIEToType().

◆ GetDIEToVariable()

SymbolFileDWARF::DIEToVariableSP & SymbolFileDWARFDwo::GetDIEToVariable ( )
overrideprotectedvirtual

Reimplemented from SymbolFileDWARF.

Definition at line 83 of file SymbolFileDWARFDwo.cpp.

References GetBaseSymbolFile(), and SymbolFileDWARF::GetDIEToVariable().

◆ GetDWOCompileUnitForHash()

DWARFCompileUnit * SymbolFileDWARFDwo::GetDWOCompileUnitForHash ( uint64_t  hash)

◆ GetDwoNum()

llvm::Optional<uint32_t> SymbolFileDWARFDwo::GetDwoNum ( )
inlineoverridevirtual

Reimplemented from SymbolFileDWARF.

Definition at line 43 of file SymbolFileDWARFDwo.h.

References lldb_private::UserID::GetID().

Referenced by GetDIE().

◆ GetForwardDeclClangTypeToDie()

SymbolFileDWARF::ClangTypeToDIE & SymbolFileDWARFDwo::GetForwardDeclClangTypeToDie ( )
overrideprotectedvirtual

Reimplemented from SymbolFileDWARF.

Definition at line 93 of file SymbolFileDWARFDwo.cpp.

References GetBaseSymbolFile(), and SymbolFileDWARF::GetForwardDeclClangTypeToDie().

◆ GetForwardDeclDieToClangType()

SymbolFileDWARF::DIEToClangType & SymbolFileDWARFDwo::GetForwardDeclDieToClangType ( )
overrideprotectedvirtual

Reimplemented from SymbolFileDWARF.

Definition at line 88 of file SymbolFileDWARFDwo.cpp.

References GetBaseSymbolFile(), and SymbolFileDWARF::GetForwardDeclDieToClangType().

◆ GetObjCMethods()

void SymbolFileDWARFDwo::GetObjCMethods ( lldb_private::ConstString  class_name,
llvm::function_ref< bool(DWARFDIE die)>  callback 
)
overridevirtual

Reimplemented from SymbolFileDWARF.

Definition at line 97 of file SymbolFileDWARFDwo.cpp.

References GetBaseSymbolFile(), and SymbolFileDWARF::GetObjCMethods().

◆ GetTypeSystemForLanguage()

llvm::Expected< TypeSystem & > SymbolFileDWARFDwo::GetTypeSystemForLanguage ( lldb::LanguageType  language)
overridevirtual

Reimplemented from SymbolFileDWARF.

Definition at line 121 of file SymbolFileDWARFDwo.cpp.

References GetBaseSymbolFile(), and SymbolFileDWARF::GetTypeSystemForLanguage().

◆ GetUniqueDWARFASTTypeMap()

UniqueDWARFASTTypeMap & SymbolFileDWARFDwo::GetUniqueDWARFASTTypeMap ( )
overrideprotectedvirtual

Reimplemented from SymbolFileDWARF.

Definition at line 103 of file SymbolFileDWARFDwo.cpp.

References GetBaseSymbolFile(), and SymbolFileDWARF::GetUniqueDWARFASTTypeMap().

◆ isA()

bool SymbolFileDWARFDwo::isA ( const void *  ClassID) const
inlineoverridevirtual

LLVM RTTI support.

Reimplemented from SymbolFileDWARF.

Definition at line 21 of file SymbolFileDWARFDwo.h.

References ID, and SymbolFileDWARF::isA().

Member Data Documentation

◆ ID

char SymbolFileDWARFDwo::ID
staticprivate

LLVM RTTI support.

Definition at line 16 of file SymbolFileDWARFDwo.h.

Referenced by classof(), and isA().

◆ m_base_symbol_file

SymbolFileDWARF& SymbolFileDWARFDwo::m_base_symbol_file
protected

Definition at line 69 of file SymbolFileDWARFDwo.h.

Referenced by GetBaseSymbolFile().


The documentation for this class was generated from the following files: