LLVM
8.0.1
|
#include "llvm/MC/MCDwarf.h"
Public Member Functions | |
MCDwarfLineTableHeader ()=default | |
Expected< unsigned > | tryGetFile (StringRef &Directory, StringRef &FileName, MD5::MD5Result *Checksum, Optional< StringRef > &Source, unsigned FileNumber=0) |
std::pair< MCSymbol *, MCSymbol * > | Emit (MCStreamer *MCOS, MCDwarfLineTableParams Params, Optional< MCDwarfLineStr > &LineStr) const |
std::pair< MCSymbol *, MCSymbol * > | Emit (MCStreamer *MCOS, MCDwarfLineTableParams Params, ArrayRef< char > SpecialOpcodeLengths, Optional< MCDwarfLineStr > &LineStr) const |
void | resetMD5Usage () |
void | trackMD5Usage (bool MD5Used) |
bool | isMD5UsageConsistent () const |
Public Attributes | |
MCSymbol * | Label = nullptr |
SmallVector< std::string, 3 > | MCDwarfDirs |
SmallVector< MCDwarfFile, 3 > | MCDwarfFiles |
StringMap< unsigned > | SourceIdMap |
std::string | CompilationDir |
MCDwarfFile | RootFile |
bool | HasSource = false |
|
default |
std::pair< MCSymbol *, MCSymbol * > MCDwarfLineTableHeader::Emit | ( | MCStreamer * | MCOS, |
MCDwarfLineTableParams | Params, | ||
Optional< MCDwarfLineStr > & | LineStr | ||
) | const |
Definition at line 271 of file MCDwarf.cpp.
References llvm::array_lengthof(), assert(), llvm::MCDwarfLineTableParams::DWARF2LineOpcodeBase, and llvm::makeArrayRef().
std::pair< MCSymbol *, MCSymbol * > MCDwarfLineTableHeader::Emit | ( | MCStreamer * | MCOS, |
MCDwarfLineTableParams | Params, | ||
ArrayRef< char > | SpecialOpcodeLengths, | ||
Optional< MCDwarfLineStr > & | LineStr | ||
) | const |
Definition at line 445 of file MCDwarf.cpp.
References llvm::MCContext::createTempSymbol(), DWARF2_LINE_DEFAULT_IS_STMT, llvm::MCDwarfLineTableParams::DWARF2LineBase, llvm::MCDwarfLineTableParams::DWARF2LineRange, emitAbsValue(), llvm::MCStreamer::EmitIntValue(), llvm::MCStreamer::EmitLabel(), llvm::MCContext::getAsmInfo(), llvm::MCAsmInfo::getCodePointerSize(), llvm::MCContext::getCompilationDir(), llvm::MCStreamer::getContext(), llvm::MCContext::getDwarfVersion(), llvm::MCAsmInfo::getMinInstAlignment(), MakeStartMinusEndExpr(), and llvm::ArrayRef< T >::size().
|
inline |
Definition at line 245 of file MCDwarf.h.
References llvm::SmallVectorBase::empty().
Referenced by llvm::MCDwarfLineTable::isMD5UsageConsistent().
|
inline |
Definition at line 237 of file MCDwarf.h.
Referenced by llvm::MCDwarfLineTable::resetRootFile().
|
inline |
Definition at line 241 of file MCDwarf.h.
Referenced by llvm::MCDwarfDwoLineTable::maybeSetRootFile(), and llvm::MCDwarfLineTable::setRootFile().
Expected< unsigned > MCDwarfLineTableHeader::tryGetFile | ( | StringRef & | Directory, |
StringRef & | FileName, | ||
MD5::MD5Result * | Checksum, | ||
Optional< StringRef > & | Source, | ||
unsigned | FileNumber = 0 |
||
) |
Definition at line 543 of file MCDwarf.cpp.
References assert(), llvm::StringRef::empty(), llvm::ARMBuildAttrs::File, llvm::sys::path::filename(), llvm::inconvertibleErrorCode(), llvm::SmallVectorImpl< T >::insert(), llvm::MCDwarfFile::Name, llvm::None, llvm::sys::path::parent_path(), and llvm::toStringRef().
Referenced by llvm::MCDwarfDwoLineTable::getFile().
std::string llvm::MCDwarfLineTableHeader::CompilationDir |
Definition at line 216 of file MCDwarf.h.
Referenced by llvm::MCDwarfDwoLineTable::maybeSetRootFile(), and llvm::MCDwarfLineTable::setRootFile().
Definition at line 218 of file MCDwarf.h.
Referenced by llvm::MCDwarfDwoLineTable::maybeSetRootFile(), llvm::MCDwarfLineTable::resetRootFile(), and llvm::MCDwarfLineTable::setRootFile().
MCSymbol* llvm::MCDwarfLineTableHeader::Label = nullptr |
Definition at line 212 of file MCDwarf.h.
Referenced by llvm::MCDwarfLineTable::getLabel(), and llvm::MCDwarfLineTable::setLabel().
SmallVector<std::string, 3> llvm::MCDwarfLineTableHeader::MCDwarfDirs |
Definition at line 213 of file MCDwarf.h.
Referenced by llvm::MCDwarfLineTable::getMCDwarfDirs().
SmallVector<MCDwarfFile, 3> llvm::MCDwarfLineTableHeader::MCDwarfFiles |
Definition at line 214 of file MCDwarf.h.
Referenced by llvm::MCDwarfLineTable::getMCDwarfFiles(), and llvm::MCDwarfLineTable::resetRootFile().
MCDwarfFile llvm::MCDwarfLineTableHeader::RootFile |
Definition at line 217 of file MCDwarf.h.
Referenced by llvm::MCDwarfLineTable::hasRootFile(), llvm::MCDwarfDwoLineTable::maybeSetRootFile(), llvm::MCDwarfLineTable::resetRootFile(), and llvm::MCDwarfLineTable::setRootFile().