LLVM 24.0.0git
llvm::logicalview::LVDWARFReader Class Referencefinal

#include "llvm/DebugInfo/LogicalView/Readers/LVDWARFReader.h"

Inheritance diagram for llvm::logicalview::LVDWARFReader:
[legend]

Public Member Functions

 LVDWARFReader ()=delete
 LVDWARFReader (StringRef Filename, StringRef FileFormatName, object::ObjectFile &Obj, ScopedPrinter &W)
 LVDWARFReader (const LVDWARFReader &)=delete
LVDWARFReader & operator= (const LVDWARFReader &)=delete
 ~LVDWARFReader () override=default
LVAddress getCUBaseAddress () const
void setCUBaseAddress (LVAddress Address)
LVAddress getCUHighAddress () const
void setCUHighAddress (LVAddress Address)
void setTombstoneAddress (LVAddress Address)
LVAddress getTombstoneAddress () const
const LVSymbols & GetSymbolsWithLocations () const
std::string getRegisterName (LVSmall Opcode, ArrayRef< uint64_t > Operands) override
void print (raw_ostream &OS) const
void dump () const
Public Member Functions inherited from llvm::logicalview::LVBinaryReader
 LVBinaryReader ()=delete
 LVBinaryReader (StringRef Filename, StringRef FileFormatName, ScopedPrinter &W, LVBinaryType BinaryType)
 LVBinaryReader (const LVBinaryReader &)=delete
LVBinaryReader & operator= (const LVBinaryReader &)=delete
 ~LVBinaryReader () override=default
void addInlineeLines (LVScope *Scope, LVLines &Lines)
LVAddress linearAddress (uint16_t Segment, uint32_t Offset, LVAddress Addendum=0)
LLVM_ABI void addToSymbolTable (StringRef Name, LVScope *Function, LVSectionIndex SectionIndex=0)
LLVM_ABI void addToSymbolTable (StringRef Name, LVAddress Address, LVSectionIndex SectionIndex, bool IsComdat)
LLVM_ABI LVSectionIndex updateSymbolTable (LVScope *Function)
LLVM_ABI const LVSymbolTableEntry & getSymbolTableEntry (StringRef Name)
LLVM_ABI LVAddress getSymbolTableAddress (StringRef Name)
LLVM_ABI LVSectionIndex getSymbolTableIndex (StringRef Name)
LLVM_ABI bool getSymbolTableIsComdat (StringRef Name)
LVSectionIndex getSectionIndex (LVScope *Scope) override
LLVM_ABI void print (raw_ostream &OS) const
void dump () const
Public Member Functions inherited from llvm::logicalview::LVReader
 LVReader ()=delete
 LVReader (StringRef InputFilename, StringRef FileFormatName, ScopedPrinter &W, LVBinaryType BinaryType=LVBinaryType::NONE)
 LVReader (const LVReader &)=delete
LVReader & operator= (const LVReader &)=delete
virtual ~LVReader ()=default
LVOperation * createOperation (LVSmall OpCode, ArrayRef< LVUnsigned > Operands)
StringRef getFilename (LVObject *Object, size_t Index) const
StringRef getFilename () const
void setFilename (std::string Name)
StringRef getFileFormatName () const
raw_ostream & outputStream ()
bool isBinaryTypeNone () const
bool isBinaryTypeELF () const
bool isBinaryTypeCOFF () const
LVScopeCompileUnit * getCompileUnit () const
void setCompileUnit (LVScope *Scope)
void setCompileUnitCPUType (codeview::CPUType Type)
codeview::CPUType getCompileUnitCPUType ()
LVScopeRoot * getScopesRoot () const
Error doPrint ()
Error doLoad ()
LVSectionIndex getDotTextSectionIndex () const
virtual bool isSystemEntry (LVElement *Element, StringRef Name={}) const
LVSplitContext & getSplitContext ()
void notifyAddedElement (LVLine *Line)
void notifyAddedElement (LVScope *Scope)
void notifyAddedElement (LVSymbol *Symbol)
void notifyAddedElement (LVType *Type)
const LVLines & getLines () const
const LVScopes & getScopes () const
const LVSymbols & getSymbols () const
const LVTypes & getTypes () const
bool doPrintLine (const LVLine *Line) const
bool doPrintLocation (const LVLocation *Location) const
bool doPrintScope (const LVScope *Scope) const
bool doPrintSymbol (const LVSymbol *Symbol) const
bool doPrintType (const LVType *Type) const
void print (raw_ostream &OS) const
virtual void printRecords (raw_ostream &OS) const
void dump () const

Protected Member Functions

Error createScopes () override
void sortScopes () override
Protected Member Functions inherited from llvm::logicalview::LVBinaryReader
LLVM_ABI Error loadGenericTargetInfo (StringRef TheTriple, StringRef TheFeatures, StringRef TheCPU)
virtual void mapRangeAddress (const object::ObjectFile &Obj, const object::SectionRef &Section, bool IsComdat)
LLVM_ABI void mapVirtualAddress (const object::ObjectFile &Obj)
LLVM_ABI void mapVirtualAddress (const object::COFFObjectFile &COFFObj)
LLVM_ABI Expected< std::pair< LVSectionIndex, object::SectionRef > > getSection (LVScope *Scope, LVAddress Address, LVSectionIndex SectionIndex)
LLVM_ABI void includeInlineeLines (LVSectionIndex SectionIndex, LVScope *Function)
LLVM_ABI Error createInstructions ()
LLVM_ABI Error createInstructions (LVScope *Function, LVSectionIndex SectionIndex)
LLVM_ABI Error createInstructions (LVScope *Function, LVSectionIndex SectionIndex, const LVNameInfo &NameInfo)
LLVM_ABI void processLines (LVLines *DebugLines, LVSectionIndex SectionIndex)
LLVM_ABI void processLines (LVLines *DebugLines, LVSectionIndex SectionIndex, LVScope *Function)
Protected Member Functions inherited from llvm::logicalview::LVReader
void addSectionRange (LVSectionIndex SectionIndex, LVScope *Scope)
void addSectionRange (LVSectionIndex SectionIndex, LVScope *Scope, LVAddress LowerAddress, LVAddress UpperAddress)
LVRange * getSectionRanges (LVSectionIndex SectionIndex)
void addCompileUnitOffset (LVOffset Offset, LVScopeCompileUnit *CompileUnit)
LVElement * createElement (dwarf::Tag Tag)
std::string createAlternativePath (StringRef From)
virtual Error printScopes ()
virtual Error printMatchedElements (bool UseMatchedElements)
void printCollectedElements (LVScope *Root)
bool checkIntegrityScopesTree (LVScope *Root)

Additional Inherited Members

Static Public Member Functions inherited from llvm::logicalview::LVReader
static LVReader & getInstance ()
static void setInstance (LVReader *Reader)
Protected Attributes inherited from llvm::logicalview::LVBinaryReader
LVLines CULines
std::unique_ptr< const MCRegisterInfo > MRI
MCTargetOptions MCOptions
std::unique_ptr< const MCAsmInfo > MAI
std::unique_ptr< const MCSubtargetInfo > STI
std::unique_ptr< const MCInstrInfo > MII
std::unique_ptr< const MCDisassembler > MD
std::unique_ptr< MCContext > MC
std::unique_ptr< MCInstPrinter > MIP
LVAddress WasmCodeSectionOffset = 0
Protected Attributes inherited from llvm::logicalview::LVReader
LVElement * CurrentElement = nullptr
LVScope * CurrentScope = nullptr
LVSymbol * CurrentSymbol = nullptr
LVType * CurrentType = nullptr
LVLine * CurrentLine = nullptr
LVOffset CurrentOffset = 0
std::vector< LVAddressRange > CurrentRanges
LVScopeRoot * Root = nullptr
std::string InputFilename
std::string FileFormatName
ScopedPrinter & W
raw_ostream & OS
LVScopeCompileUnit * CompileUnit = nullptr
LVSectionIndex DotTextSectionIndex = UndefinedSectionIndex

Detailed Description

Definition at line 34 of file LVDWARFReader.h.

Constructor & Destructor Documentation

◆ LVDWARFReader() [1/3]

llvm::logicalview::LVDWARFReader::LVDWARFReader ( )
delete

Referenced by LVDWARFReader(), and operator=().

◆ LVDWARFReader() [2/3]

◆ LVDWARFReader() [3/3]

llvm::logicalview::LVDWARFReader::LVDWARFReader ( const LVDWARFReader & )
delete

References LVDWARFReader().

◆ ~LVDWARFReader()

llvm::logicalview::LVDWARFReader::~LVDWARFReader ( )
overridedefault

Member Function Documentation

◆ createScopes()

◆ dump()

void llvm::logicalview::LVDWARFReader::dump ( ) const
inline

Definition at line 150 of file LVDWARFReader.h.

References llvm::dbgs(), and print().

◆ getCUBaseAddress()

LVAddress llvm::logicalview::LVDWARFReader::getCUBaseAddress ( ) const
inline

Definition at line 129 of file LVDWARFReader.h.

◆ getCUHighAddress()

LVAddress llvm::logicalview::LVDWARFReader::getCUHighAddress ( ) const
inline

Definition at line 131 of file LVDWARFReader.h.

◆ getRegisterName()

std::string LVDWARFReader::getRegisterName ( LVSmall Opcode,
ArrayRef< uint64_t > Operands )
overridevirtual

◆ GetSymbolsWithLocations()

const LVSymbols & llvm::logicalview::LVDWARFReader::GetSymbolsWithLocations ( ) const
inline

Definition at line 140 of file LVDWARFReader.h.

◆ getTombstoneAddress()

LVAddress llvm::logicalview::LVDWARFReader::getTombstoneAddress ( ) const
inline

Definition at line 135 of file LVDWARFReader.h.

References assert().

◆ operator=()

LVDWARFReader & llvm::logicalview::LVDWARFReader::operator= ( const LVDWARFReader & )
delete

References LVDWARFReader().

◆ print()

void LVDWARFReader::print ( raw_ostream & OS) const

Definition at line 1061 of file LVDWARFReader.cpp.

References llvm::dbgs(), LLVM_DEBUG, and llvm::logicalview::LVReader::OS.

◆ setCUBaseAddress()

void llvm::logicalview::LVDWARFReader::setCUBaseAddress ( LVAddress Address)
inline

Definition at line 130 of file LVDWARFReader.h.

References llvm::Address.

◆ setCUHighAddress()

void llvm::logicalview::LVDWARFReader::setCUHighAddress ( LVAddress Address)
inline

Definition at line 132 of file LVDWARFReader.h.

References llvm::Address.

◆ setTombstoneAddress()

void llvm::logicalview::LVDWARFReader::setTombstoneAddress ( LVAddress Address)
inline

Definition at line 134 of file LVDWARFReader.h.

References llvm::Address.

Referenced by createScopes().

◆ sortScopes()

void LVDWARFReader::sortScopes ( )
overrideprotectedvirtual

Reimplemented from llvm::logicalview::LVReader.

Definition at line 1059 of file LVDWARFReader.cpp.

References llvm::logicalview::LVReader::Root.


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