LLVM 20.0.0git
|
#include "llvm/DebugInfo/LogicalView/Readers/LVBinaryReader.h"
Protected Attributes | |
LVLines | CULines |
std::unique_ptr< const MCRegisterInfo > | MRI |
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 | |
LVScopeRoot * | Root = nullptr |
std::string | InputFilename |
std::string | FileFormatName |
ScopedPrinter & | W |
raw_ostream & | OS |
LVScopeCompileUnit * | CompileUnit = nullptr |
LVSectionIndex | DotTextSectionIndex = UndefinedSectionIndex |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::logicalview::LVReader | |
static LVReader & | getInstance () |
static void | setInstance (LVReader *Reader) |
Definition at line 69 of file LVBinaryReader.h.
|
delete |
|
inline |
Definition at line 200 of file LVBinaryReader.h.
|
delete |
|
virtualdefault |
Definition at line 207 of file LVBinaryReader.h.
References llvm::codeview::Lines.
Referenced by llvm::logicalview::LVLogicalVisitor::inlineSiteAnnotation().
|
protected |
Definition at line 370 of file LVBinaryReader.cpp.
References llvm::logicalview::LVRange::addEntry(), and getSectionRanges().
Referenced by llvm::logicalview::LVDWARFReader::createScopes().
|
protected |
Definition at line 376 of file LVBinaryReader.cpp.
References llvm::logicalview::LVRange::addEntry(), and getSectionRanges().
void LVBinaryReader::addToSymbolTable | ( | StringRef | Name, |
LVAddress | Address, | ||
LVSectionIndex | SectionIndex, | ||
bool | IsComdat | ||
) |
Definition at line 125 of file LVBinaryReader.cpp.
References llvm::logicalview::LVSymbolTable::add(), llvm::Address, and llvm::logicalview::Name.
void LVBinaryReader::addToSymbolTable | ( | StringRef | Name, |
LVScope * | Function, | ||
LVSectionIndex | SectionIndex = 0 |
||
) |
Definition at line 121 of file LVBinaryReader.cpp.
References llvm::logicalview::LVSymbolTable::add(), and llvm::logicalview::Name.
Referenced by includeInlineeLines(), and llvm::logicalview::LVSymbolVisitor::visitKnownRecord().
|
protected |
Definition at line 541 of file LVBinaryReader.cpp.
References llvm::Address, createInstructions(), llvm::dbgs(), llvm::format_decimal(), getSymbolTableIndex(), llvm::logicalview::hexValue(), LLVM_DEBUG, llvm::logicalview::Name, llvm::logicalview::options(), Size, and llvm::Error::success().
Referenced by createInstructions(), and llvm::logicalview::LVDWARFReader::createScopes().
|
protected |
Definition at line 529 of file LVBinaryReader.cpp.
References createInstructions(), llvm::logicalview::Name, llvm::logicalview::options(), llvm::Error::success(), and UINT64_MAX.
|
protected |
Definition at line 394 of file LVBinaryReader.cpp.
References llvm::Address, assert(), llvm::consumeError(), llvm::ArrayRef< T >::data(), llvm::dbgs(), End, llvm::MCDisassembler::Fail, llvm::fmt_align(), llvm::format(), llvm::format_bytes(), llvm::format_decimal(), llvm::formatv(), getSection(), llvm::logicalview::hexValue(), llvm::logicalview::Instructions, llvm::Left, LLVM_DEBUG, MD, MIP, llvm::logicalview::Offset, llvm::outs(), Size, llvm::MCDisassembler::SoftFail, STI, llvm::raw_string_ostream::str(), llvm::MCDisassembler::Success, llvm::Error::success(), llvm::Expected< T >::takeError(), and llvm::StringRef::trim().
|
inline |
Definition at line 236 of file LVBinaryReader.h.
References llvm::dbgs(), and print().
|
protected |
Definition at line 339 of file LVBinaryReader.cpp.
References llvm::Address, llvm::createStringError(), and llvm::invalid_argument.
Referenced by createInstructions().
|
inlineoverridevirtual |
Reimplemented from llvm::logicalview::LVReader.
Definition at line 228 of file LVBinaryReader.h.
References llvm::logicalview::LVReader::DotTextSectionIndex, and getSymbolTableIndex().
Referenced by llvm::logicalview::LVDWARFReader::createScopes().
|
protected |
Definition at line 383 of file LVBinaryReader.cpp.
References assert(), and llvm::logicalview::Range.
Referenced by addSectionRange(), llvm::logicalview::LVDWARFReader::createScopes(), and processLines().
Definition at line 137 of file LVBinaryReader.cpp.
References llvm::logicalview::LVSymbolTable::getAddress(), and llvm::logicalview::Name.
Referenced by llvm::logicalview::LVSymbolVisitor::visitKnownRecord().
const LVSymbolTableEntry & LVBinaryReader::getSymbolTableEntry | ( | StringRef | Name | ) |
Definition at line 134 of file LVBinaryReader.cpp.
References llvm::logicalview::LVSymbolTable::getEntry(), and llvm::logicalview::Name.
LVSectionIndex LVBinaryReader::getSymbolTableIndex | ( | StringRef | Name | ) |
Definition at line 140 of file LVBinaryReader.cpp.
References llvm::logicalview::LVSymbolTable::getIndex(), and llvm::logicalview::Name.
Referenced by createInstructions(), and getSectionIndex().
Definition at line 143 of file LVBinaryReader.cpp.
References llvm::logicalview::LVSymbolTable::getIsComdat(), and llvm::logicalview::Name.
|
protected |
Definition at line 893 of file LVBinaryReader.cpp.
References addToSymbolTable(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), CULines, llvm::dbgs(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::format(), getAddress(), llvm::Value::getName(), llvm::logicalview::LVScope::getScopes(), llvm::logicalview::hexValue(), llvm::codeview::InlineeLines, llvm::SmallVectorImpl< T >::insert(), LLVM_DEBUG, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::logicalview::Scopes, and llvm::SmallVectorBase< Size_T >::size().
|
inline |
Definition at line 212 of file LVBinaryReader.h.
References llvm::logicalview::Offset.
Referenced by llvm::logicalview::LVSymbolVisitor::visitKnownRecord().
|
protected |
Definition at line 277 of file LVBinaryReader.cpp.
References llvm::Target::createMCAsmInfo(), llvm::Target::createMCDisassembler(), llvm::Target::createMCInstPrinter(), llvm::Target::createMCInstrInfo(), llvm::Target::createMCRegInfo(), llvm::Target::createMCSubtargetInfo(), llvm::createStringError(), llvm::MCAsmInfo::getAssemblerDialect(), llvm::invalid_argument, llvm::TargetRegistry::lookupTarget(), MAI, MC, MD, MII, MIP, MRI, llvm::MCInstPrinter::setPrintImmHex(), STI, and llvm::Error::success().
|
inlineprotectedvirtual |
Definition at line 170 of file LVBinaryReader.h.
Referenced by mapVirtualAddress().
|
inlineprotectedvirtual |
Definition at line 171 of file LVBinaryReader.h.
|
protected |
Definition at line 222 of file LVBinaryReader.cpp.
References llvm::object::coff_section::Characteristics, llvm::consumeError(), llvm::dbgs(), llvm::format_decimal(), llvm::ErrorOr< T >::get(), llvm::object::COFFObjectFile::getCOFFSection(), llvm::object::COFFObjectFile::getImageBase(), llvm::logicalview::hexValue(), llvm::COFF::IMAGE_SCN_CNT_CODE, llvm::COFF::IMAGE_SCN_LNK_COMDAT, LLVM_DEBUG, mapRangeAddress(), llvm::object::coff_section::PointerToRawData, llvm::object::ObjectFile::sections(), llvm::object::coff_section::SizeOfRawData, llvm::Expected< T >::takeError(), and llvm::object::coff_section::VirtualAddress.
|
protected |
Definition at line 147 of file LVBinaryReader.cpp.
References llvm::consumeError(), llvm::dbgs(), llvm::logicalview::LVReader::DotTextSectionIndex, llvm::format_decimal(), llvm::logicalview::hexValue(), llvm::object::Binary::isWasm(), LLVM_DEBUG, mapRangeAddress(), llvm::logicalview::Name, llvm::object::ObjectFile::sections(), llvm::Expected< T >::takeError(), and WasmCodeSectionOffset.
Referenced by llvm::logicalview::LVDWARFReader::createScopes().
|
delete |
void LVBinaryReader::print | ( | raw_ostream & | OS | ) | const |
Definition at line 965 of file LVBinaryReader.cpp.
References llvm::dbgs(), LLVM_DEBUG, and llvm::logicalview::LVReader::OS.
Referenced by dump().
|
protected |
Definition at line 789 of file LVBinaryReader.cpp.
References llvm::Address, assert(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::dbgs(), llvm::SmallVectorBase< Size_T >::empty(), End, llvm::format_decimal(), llvm::logicalview::hexValue(), LLVM_DEBUG, processLines(), llvm::SmallVectorBase< Size_T >::size(), and Size.
Referenced by llvm::logicalview::LVDWARFReader::createScopes(), and processLines().
|
protected |
Definition at line 584 of file LVBinaryReader.cpp.
References llvm::SmallVectorImpl< T >::append(), assert(), llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::logicalview::LVReader::CompileUnit, llvm::dbgs(), llvm::SmallVectorBase< Size_T >::empty(), llvm::SmallVectorTemplateCommon< T, typename >::end(), llvm::logicalview::LVRange::endSearch(), llvm::format(), llvm::format_decimal(), llvm::codeview::Function, llvm::logicalview::LVRange::getEntry(), getSectionRanges(), llvm::logicalview::hexValue(), llvm::SmallVectorImpl< T >::insert(), llvm::codeview::Lines, LLVM_DEBUG, llvm::logicalview::options(), llvm::logicalview::patterns(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::logicalview::LVPatterns::resolvePatternMatch(), llvm::logicalview::Scopes, llvm::SmallVectorBase< Size_T >::size(), and llvm::logicalview::LVRange::startSearch().
LVSectionIndex LVBinaryReader::updateSymbolTable | ( | LVScope * | Function | ) |
Definition at line 130 of file LVBinaryReader.cpp.
References llvm::logicalview::LVSymbolTable::update().
|
protected |
Definition at line 115 of file LVBinaryReader.h.
Referenced by llvm::logicalview::LVDWARFReader::createScopes(), and includeInlineeLines().
Definition at line 118 of file LVBinaryReader.h.
Referenced by loadGenericTargetInfo().
|
protected |
Definition at line 122 of file LVBinaryReader.h.
Referenced by loadGenericTargetInfo().
|
protected |
Definition at line 121 of file LVBinaryReader.h.
Referenced by createInstructions(), and loadGenericTargetInfo().
|
protected |
Definition at line 120 of file LVBinaryReader.h.
Referenced by loadGenericTargetInfo().
|
protected |
Definition at line 123 of file LVBinaryReader.h.
Referenced by createInstructions(), and loadGenericTargetInfo().
|
protected |
Definition at line 117 of file LVBinaryReader.h.
Referenced by llvm::logicalview::LVDWARFReader::getRegisterName(), and loadGenericTargetInfo().
|
protected |
Definition at line 119 of file LVBinaryReader.h.
Referenced by createInstructions(), and loadGenericTargetInfo().
|
protected |
Definition at line 165 of file LVBinaryReader.h.
Referenced by mapVirtualAddress().