LLVM 22.0.0git
DwarfTransformer.cpp File Reference

Go to the source code of this file.

Classes

struct  llvm::gsym::CUInfo

Functions

static DWARFDie GetParentDeclContextDIE (DWARFDie &Die)
static std::optional< uint32_tgetQualifiedNameIndex (DWARFDie &Die, uint64_t Language, GsymCreator &Gsym)
 Get the GsymCreator string table offset for the qualified name for the DIE passed in.
static bool hasInlineInfo (DWARFDie Die, uint32_t Depth)
static AddressRanges ConvertDWARFRanges (const DWARFAddressRangesVector &DwarfRanges)
static void parseInlineInfo (GsymCreator &Gsym, OutputAggregator &Out, CUInfo &CUI, DWARFDie Die, uint32_t Depth, FunctionInfo &FI, InlineInfo &Parent, const AddressRanges &AllParentRanges, bool &WarnIfEmpty)
static void convertFunctionLineTable (OutputAggregator &Out, CUInfo &CUI, DWARFDie Die, GsymCreator &Gsym, FunctionInfo &FI)

Function Documentation

◆ ConvertDWARFRanges()

AddressRanges ConvertDWARFRanges ( const DWARFAddressRangesVector & DwarfRanges)
static

Definition at line 208 of file DwarfTransformer.cpp.

Referenced by parseInlineInfo().

◆ convertFunctionLineTable()

◆ GetParentDeclContextDIE()

◆ getQualifiedNameIndex()

std::optional< uint32_t > getQualifiedNameIndex ( DWARFDie & Die,
uint64_t Language,
GsymCreator & Gsym )
static

Get the GsymCreator string table offset for the qualified name for the DIE passed in.

This function will avoid making copies of any strings in the GsymCreator when possible. We don't need to copy a string when the string comes from our .debug_str section or is an inlined string in the .debug_info. If we create a qualified name string in this function by combining multiple strings in the DWARF string table or info, we will make a copy of the string when we add it to the string table.

Definition at line 132 of file DwarfTransformer.cpp.

References llvm::StringRef::back(), llvm::StringRef::empty(), llvm::StringRef::front(), llvm::DWARFDie::getLinkageName(), llvm::DWARFDie::getName(), GetParentDeclContextDIE(), llvm::gsym::GsymCreator::insertString(), llvm::LinkageName, llvm::ShortName, llvm::StringRef::size(), llvm::StringRef::str(), and llvm::StringRef::substr().

Referenced by parseInlineInfo().

◆ hasInlineInfo()

bool hasInlineInfo ( DWARFDie Die,
uint32_t Depth )
static

◆ parseInlineInfo()