LLVM 20.0.0git
|
#include "llvm/DebugInfo/LogicalView/Readers/LVCodeViewVisitor.h"
Definition at line 124 of file LVCodeViewVisitor.h.
|
inline |
Definition at line 179 of file LVCodeViewVisitor.h.
References llvm::logicalview::Types.
Definition at line 790 of file LVCodeViewVisitor.cpp.
References llvm::Block, llvm::logicalview::LVLogicalVisitor::CurrentScope, llvm::logicalview::LVSymbolVisitorDelegate::getLinkageName(), llvm::logicalview::LVBinaryReader::getSymbolTableAddress(), llvm::logicalview::LVBinaryReader::linearAddress(), llvm::LinkageName, LLVM_DEBUG, llvm::logicalview::options(), llvm::ScopedPrinter::printHex(), llvm::ScopedPrinter::printString(), and llvm::Error::success().
|
override |
Definition at line 818 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVScope::addElement(), llvm::logicalview::LVLogicalVisitor::CurrentSymbol, llvm::logicalview::LVLogicalVisitor::getElement(), llvm::logicalview::LVObject::getParentScope(), LLVM_DEBUG, llvm::logicalview::Local, llvm::ScopedPrinter::printNumber(), llvm::ScopedPrinter::printString(), llvm::pdb::StreamTPI, llvm::Error::success(), and llvm::logicalview::LVElement::updateLevel().
|
override |
Definition at line 923 of file LVCodeViewVisitor.cpp.
References llvm::codeview::BuildInfoSym::BuildId, llvm::logicalview::LVLogicalVisitor::finishVisitation(), llvm::logicalview::LVReader::getCompileUnit(), llvm::codeview::LazyRandomTypeCollection::getType(), LLVM_DEBUG, and llvm::Error::success().
Definition at line 1706 of file LVCodeViewVisitor.cpp.
References llvm::pdb::Caller, for(), LLVM_DEBUG, and llvm::Error::success().
|
override |
Definition at line 936 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVCodeViewReader::addModule(), llvm::logicalview::LVLogicalVisitor::CurrentScope, llvm::codeview::getCompileSym3FlagNames(), llvm::logicalview::LVReader::getCompileUnit(), llvm::codeview::getCPUTypeNames(), llvm::codeview::Compile2Sym::getFlags(), llvm::codeview::Compile2Sym::getLanguage(), llvm::logicalview::getReader(), llvm::codeview::getSourceLanguageNames(), llvm::logicalview::LVReader::isSystemEntry(), LLVM_DEBUG, llvm::codeview::Compile2Sym::Machine, llvm::logicalview::options(), llvm::ScopedPrinter::printEnum(), llvm::ScopedPrinter::printFlags(), llvm::ScopedPrinter::printString(), llvm::logicalview::LVReader::setCompileUnitCPUType(), llvm::logicalview::LVShared::StringRecords, llvm::Error::success(), and llvm::codeview::Compile2Sym::Version.
|
override |
Definition at line 981 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVCodeViewReader::addModule(), llvm::logicalview::LVLogicalVisitor::CurrentScope, llvm::codeview::getCompileSym3FlagNames(), llvm::logicalview::LVReader::getCompileUnit(), llvm::codeview::getCPUTypeNames(), llvm::codeview::Compile3Sym::getFlags(), llvm::codeview::Compile3Sym::getLanguage(), llvm::logicalview::getReader(), llvm::codeview::getSourceLanguageNames(), llvm::logicalview::LVReader::isSystemEntry(), LLVM_DEBUG, llvm::codeview::Compile3Sym::Machine, llvm::logicalview::options(), llvm::ScopedPrinter::printEnum(), llvm::ScopedPrinter::printFlags(), llvm::ScopedPrinter::printString(), llvm::logicalview::LVReader::setCompileUnitCPUType(), llvm::logicalview::LVShared::StringRecords, llvm::Error::success(), and llvm::codeview::Compile3Sym::Version.
|
override |
Definition at line 1026 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVLogicalVisitor::CurrentSymbol, llvm::logicalview::LVLogicalVisitor::getElement(), LLVM_DEBUG, llvm::ScopedPrinter::printNumber(), llvm::ScopedPrinter::printString(), llvm::pdb::StreamTPI, llvm::Error::success(), and llvm::Value::Value().
Definition at line 1339 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVScope::addElement(), llvm::logicalview::LVLogicalVisitor::CurrentSymbol, llvm::Data, llvm::logicalview::LVLogicalVisitor::getElement(), llvm::logicalview::LVSymbolVisitorDelegate::getLinkageName(), llvm::logicalview::getReader(), llvm::logicalview::LVReader::isSystemEntry(), llvm::LinkageName, LLVM_DEBUG, llvm::logicalview::LVShared::NamespaceDeduction, llvm::logicalview::options(), llvm::ScopedPrinter::printString(), llvm::pdb::StreamTPI, and llvm::Error::success().
|
override |
|
override |
Definition at line 1072 of file LVCodeViewVisitor.cpp.
References llvm::Address, llvm::formatv(), llvm::codeview::DefRangeFramePointerRelSym::Gaps, llvm::logicalview::LVElement::getName(), llvm::ScopedPrinter::getOStream(), llvm::codeview::DefRangeFramePointerRelSym::getRelocationOffset(), llvm::codeview::DefRangeFramePointerRelSym::Hdr, llvm::logicalview::LVBinaryReader::linearAddress(), LLVM_DEBUG, llvm::codeview::DefRangeFramePointerRelHeader::Offset, llvm::ScopedPrinter::printNumber(), llvm::codeview::DefRangeFramePointerRelSym::Range, llvm::logicalview::Range, and llvm::Error::success().
|
override |
Definition at line 1110 of file LVCodeViewVisitor.cpp.
References llvm::Address, llvm::codeview::DefRangeRegisterRelHeader::BasePointerOffset, llvm::formatv(), llvm::codeview::DefRangeRegisterRelSym::Gaps, llvm::logicalview::LVElement::getName(), llvm::ScopedPrinter::getOStream(), llvm::codeview::DefRangeRegisterRelSym::getRelocationOffset(), llvm::codeview::DefRangeRegisterRelSym::hasSpilledUDTMember(), llvm::codeview::DefRangeRegisterRelSym::Hdr, llvm::logicalview::LVBinaryReader::linearAddress(), LLVM_DEBUG, llvm::codeview::DefRangeRegisterRelSym::offsetInParent(), llvm::ScopedPrinter::printBoolean(), llvm::ScopedPrinter::printNumber(), llvm::codeview::DefRangeRegisterRelSym::Range, llvm::logicalview::Range, llvm::codeview::DefRangeRegisterRelHeader::Register, and llvm::Error::success().
|
override |
Definition at line 1149 of file LVCodeViewVisitor.cpp.
References llvm::Address, llvm::formatv(), llvm::codeview::DefRangeRegisterSym::Gaps, llvm::logicalview::LVReader::getCompileUnitCPUType(), llvm::logicalview::LVElement::getName(), llvm::ScopedPrinter::getOStream(), llvm::codeview::getRegisterNames(), llvm::codeview::DefRangeRegisterSym::getRelocationOffset(), llvm::codeview::DefRangeRegisterSym::Hdr, llvm::logicalview::LVBinaryReader::linearAddress(), LLVM_DEBUG, llvm::codeview::DefRangeRegisterHeader::MayHaveNoName, llvm::ScopedPrinter::printEnum(), llvm::ScopedPrinter::printNumber(), llvm::codeview::DefRangeRegisterSym::Range, llvm::logicalview::Range, llvm::codeview::DefRangeRegisterHeader::Register, and llvm::Error::success().
|
override |
Definition at line 1184 of file LVCodeViewVisitor.cpp.
References llvm::Address, llvm::formatv(), llvm::codeview::DefRangeSubfieldRegisterSym::Gaps, llvm::logicalview::LVReader::getCompileUnitCPUType(), llvm::logicalview::LVElement::getName(), llvm::ScopedPrinter::getOStream(), llvm::codeview::getRegisterNames(), llvm::codeview::DefRangeSubfieldRegisterSym::getRelocationOffset(), llvm::codeview::DefRangeSubfieldRegisterSym::Hdr, llvm::logicalview::LVBinaryReader::linearAddress(), LLVM_DEBUG, llvm::codeview::DefRangeSubfieldRegisterHeader::MayHaveNoName, llvm::codeview::DefRangeSubfieldRegisterHeader::OffsetInParent, llvm::ScopedPrinter::printEnum(), llvm::ScopedPrinter::printNumber(), llvm::codeview::DefRangeSubfieldRegisterSym::Range, llvm::logicalview::Range, llvm::codeview::DefRangeSubfieldRegisterHeader::Register, and llvm::Error::success().
|
override |
Definition at line 1222 of file LVCodeViewVisitor.cpp.
References llvm::Address, llvm::consumeError(), llvm::formatv(), llvm::codeview::DefRangeSubfieldSym::Gaps, llvm::logicalview::LVElement::getName(), llvm::ScopedPrinter::getOStream(), llvm::codeview::DefRangeSubfieldSym::getRelocationOffset(), llvm::logicalview::LVSymbolVisitorDelegate::getStringTable(), if(), llvm::logicalview::LVBinaryReader::linearAddress(), LLVM_DEBUG, llvm::codeview::DefRangeSubfieldSym::OffsetInParent, llvm::ScopedPrinter::printNumber(), llvm::ScopedPrinter::printString(), llvm::codeview::DefRangeSubfieldSym::Program, llvm::codeview::DefRangeSubfieldSym::Range, llvm::logicalview::Range, and llvm::Error::success().
|
override |
Definition at line 1265 of file LVCodeViewVisitor.cpp.
References llvm::Address, llvm::consumeError(), llvm::formatv(), llvm::codeview::DefRangeSym::Gaps, llvm::logicalview::LVElement::getName(), llvm::ScopedPrinter::getOStream(), llvm::codeview::DefRangeSym::getRelocationOffset(), llvm::logicalview::LVSymbolVisitorDelegate::getStringTable(), if(), llvm::logicalview::LVBinaryReader::linearAddress(), LLVM_DEBUG, llvm::ScopedPrinter::printString(), llvm::codeview::DefRangeSym::Program, llvm::codeview::DefRangeSym::Range, llvm::logicalview::Range, and llvm::Error::success().
|
override |
Definition at line 1306 of file LVCodeViewVisitor.cpp.
References llvm::dwarf::DW_INL_declared_inlined, llvm::dwarf::DW_INL_inlined, llvm::codeview::FrameProcSym::Flags, llvm::logicalview::LVReader::getCompileUnitCPUType(), llvm::codeview::FrameProcSym::getLocalFramePtrReg(), llvm::codeview::FrameProcSym::getParamFramePtrReg(), llvm::logicalview::LVLogicalVisitor::getReaderScope(), and llvm::Error::success().
|
override |
Definition at line 1381 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVLogicalVisitor::CurrentScope, llvm::dwarf::DW_INL_inlined, llvm::logicalview::LVLogicalVisitor::finishVisitation(), llvm::logicalview::LVElement::getName(), llvm::codeview::LazyRandomTypeCollection::getType(), llvm::logicalview::LVLogicalVisitor::inlineSiteAnnotation(), LLVM_DEBUG, llvm::logicalview::Name, llvm::logicalview::LVElement::setInlineCode(), llvm::logicalview::LVElement::setReference(), llvm::logicalview::LVObject::setTag(), llvm::logicalview::LVLogicalVisitor::startProcessArgumentList(), llvm::logicalview::LVLogicalVisitor::stopProcessArgumentList(), and llvm::Error::success().
|
override |
Definition at line 1689 of file LVCodeViewVisitor.cpp.
References llvm::codeview::getJumpTableEntrySizeNames(), LLVM_DEBUG, llvm::ScopedPrinter::printFlags(), llvm::ScopedPrinter::printHex(), llvm::ScopedPrinter::printNumber(), and llvm::Error::success().
Definition at line 1417 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVScope::addElement(), llvm::logicalview::LVLogicalVisitor::CurrentSymbol, llvm::logicalview::LVLogicalVisitor::getElement(), llvm::codeview::getLocalFlagNames(), LLVM_DEBUG, llvm::logicalview::Local, llvm::ScopedPrinter::printFlags(), llvm::ScopedPrinter::printString(), llvm::pdb::StreamTPI, llvm::Error::success(), and llvm::logicalview::LVElement::updateLevel().
|
override |
Definition at line 1466 of file LVCodeViewVisitor.cpp.
References LLVM_DEBUG, llvm::codeview::ObjNameSym::Name, llvm::ScopedPrinter::printHex(), llvm::ScopedPrinter::printString(), llvm::codeview::ObjNameSym::Signature, and llvm::Error::success().
Definition at line 1477 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVScopeCompileUnit::addPublicName(), llvm::logicalview::LVBinaryReader::addToSymbolTable(), llvm::codeview::ProcSym::CodeOffset, llvm::codeview::ProcSym::CodeSize, llvm::logicalview::LVLogicalVisitor::CurrentScope, llvm::demangle(), llvm::logicalview::LVLogicalVisitor::finishVisitation(), llvm::codeview::ProcSym::Flags, llvm::logicalview::LVShared::ForwardReferences, llvm::codeview::ProcSym::FunctionType, llvm::logicalview::LVReader::getCompileUnit(), llvm::logicalview::LVLogicalVisitor::getElement(), llvm::logicalview::getInnerComponent(), llvm::logicalview::LVSymbolVisitorDelegate::getLinkageName(), llvm::codeview::getProcSymFlagNames(), llvm::codeview::ProcSym::getRelocationOffset(), llvm::logicalview::LVBinaryReader::getSymbolTableAddress(), llvm::codeview::TypeIndex::isNoneType(), llvm::codeview::TypeIndex::isSimple(), llvm::logicalview::LVBinaryReader::linearAddress(), llvm::LinkageName, LLVM_DEBUG, llvm::codeview::ProcSym::Name, llvm::logicalview::options(), llvm::ScopedPrinter::printFlags(), llvm::ScopedPrinter::printHex(), llvm::ScopedPrinter::printString(), llvm::codeview::ProcSym::Segment, llvm::Value::setName(), llvm::pdb::StreamTPI, llvm::Error::success(), and llvm::codeview::LazyRandomTypeCollection::tryGetType().
|
override |
Definition at line 873 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVScope::addElement(), llvm::logicalview::LVLogicalVisitor::CurrentSymbol, llvm::logicalview::LVLogicalVisitor::getElement(), llvm::logicalview::LVObject::getParentScope(), LLVM_DEBUG, llvm::logicalview::Local, llvm::ScopedPrinter::printNumber(), llvm::ScopedPrinter::printString(), llvm::pdb::StreamTPI, llvm::Error::success(), and llvm::logicalview::LVElement::updateLevel().
|
override |
Definition at line 1621 of file LVCodeViewVisitor.cpp.
References llvm::Error::success().
|
override |
Definition at line 1628 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVLogicalVisitor::CurrentScope, LLVM_DEBUG, llvm::ScopedPrinter::printHex(), llvm::ScopedPrinter::printString(), llvm::Value::setName(), llvm::Error::success(), and llvm::pdb::Thunk.
Definition at line 1647 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVScope::addElement(), llvm::logicalview::LVLogicalVisitor::CurrentType, llvm::logicalview::LVLogicalVisitor::getElement(), llvm::logicalview::getReader(), llvm::logicalview::getRecordName(), llvm::logicalview::LVReader::isSystemEntry(), LLVM_DEBUG, llvm::logicalview::LVShared::NamespaceDeduction, llvm::ScopedPrinter::printString(), llvm::pdb::StreamTPI, llvm::Error::success(), and llvm::pdb::UDT.
|
override |
Definition at line 1682 of file LVCodeViewVisitor.cpp.
References LLVM_DEBUG, llvm::codeview::UsingNamespaceSym::Name, llvm::ScopedPrinter::printString(), and llvm::Error::success().
Reimplemented from llvm::codeview::SymbolVisitorCallbacks.
Definition at line 731 of file LVCodeViewVisitor.cpp.
References visitSymbolBegin().
Referenced by visitSymbolBegin().
Paired begin/end actions for all symbols.
Receives all record data, including the fixed-length record prefix. visitSymbolBegin() should return the type of the Symbol, or an error if it cannot be determined.
Reimplemented from llvm::codeview::SymbolVisitorCallbacks.
Definition at line 735 of file LVCodeViewVisitor.cpp.
References llvm::logicalview::LVLogicalVisitor::addElement(), assert(), llvm::logicalview::LVLogicalVisitor::createElement(), llvm::logicalview::LVLogicalVisitor::CurrentElement, llvm::logicalview::LVLogicalVisitor::CurrentScope, llvm::logicalview::LVLogicalVisitor::CurrentSymbol, llvm::logicalview::LVLogicalVisitor::CurrentType, llvm::codeview::getSymbolTypeNames(), LLVM_DEBUG, llvm::logicalview::Offset, llvm::logicalview::options(), llvm::ScopedPrinter::printEnum(), llvm::ScopedPrinter::printNumber(), llvm::logicalview::LVObject::setOffset(), llvm::Error::success(), llvm::logicalview::LVShared::SymbolKinds, and llvm::codeview::symbolOpensScope().
Reimplemented from llvm::codeview::SymbolVisitorCallbacks.
Definition at line 772 of file LVCodeViewVisitor.cpp.
References llvm::codeview::getSymbolTypeNames(), LLVM_DEBUG, llvm::logicalview::LVLogicalVisitor::popScope(), llvm::ScopedPrinter::printEnum(), llvm::Error::success(), and llvm::codeview::symbolEndsScope().
Action to take on unknown symbols. By default, they are ignored.
Reimplemented from llvm::codeview::SymbolVisitorCallbacks.
Definition at line 784 of file LVCodeViewVisitor.cpp.
References LLVM_DEBUG, llvm::ScopedPrinter::printNumber(), and llvm::Error::success().