LLVM
15.0.0git
|
Manage the .debug_line_str section contents, if we use it. More...
#include "llvm/MC/MCDwarf.h"
Public Member Functions | |
MCDwarfLineStr (MCContext &Ctx) | |
Construct an instance that can emit .debug_line_str (for use in a normal v5 line table). More... | |
void | emitRef (MCStreamer *MCOS, StringRef Path) |
Emit a reference to the string. More... | |
void | emitSection (MCStreamer *MCOS) |
Emit the .debug_line_str section if appropriate. More... | |
SmallString< 0 > | getFinalizedData () |
Returns finalized section. More... | |
|
explicit |
Construct an instance that can emit .debug_line_str (for use in a normal v5 line table).
Definition at line 79 of file MCDwarf.cpp.
References llvm::MCAsmInfo::doesDwarfUseRelocationsAcrossSections(), llvm::MCContext::getAsmInfo(), llvm::MCSection::getBeginSymbol(), llvm::MCObjectFileInfo::getDwarfLineStrSection(), and llvm::MCContext::getObjectFileInfo().
void MCDwarfLineStr::emitRef | ( | MCStreamer * | MCOS, |
StringRef | Path | ||
) |
Emit a reference to the string.
Definition at line 351 of file MCDwarf.cpp.
References llvm::StringTableBuilder::add(), llvm::MCStreamer::emitIntValue(), llvm::MCStreamer::emitValue(), llvm::MCStreamer::getContext(), llvm::MCContext::getDwarfFormat(), llvm::dwarf::getDwarfOffsetByteSize(), and makeStartPlusIntExpr().
Referenced by emitOneV5FileEntry().
void MCDwarfLineStr::emitSection | ( | MCStreamer * | MCOS | ) |
Emit the .debug_line_str section if appropriate.
Definition at line 333 of file MCDwarf.cpp.
References llvm::Data, llvm::MCStreamer::emitBinaryData(), llvm::MCStreamer::getContext(), llvm::MCObjectFileInfo::getDwarfLineStrSection(), getFinalizedData(), llvm::MCContext::getObjectFileInfo(), and llvm::MCStreamer::switchSection().
Referenced by llvm::MCDwarfLineTable::emit().
SmallString< 0 > MCDwarfLineStr::getFinalizedData | ( | ) |
Returns finalized section.
Definition at line 341 of file MCDwarf.cpp.
References llvm::Data, llvm::StringTableBuilder::finalizeInOrder(), llvm::StringTableBuilder::getSize(), llvm::StringTableBuilder::isFinalized(), and llvm::StringTableBuilder::write().
Referenced by emitSection().