LLVM: llvm::objcopy:🧝:ASCIIHexWriter Class Reference (original) (raw)

#include "[ObjCopy/ELF/ELFObject.h](ELFObject%5F8h%5Fsource.html)"

Inheritance diagram for llvm::objcopy:🧝:ASCIIHexWriter:

Public Member Functions
ASCIIHexWriter (Object &Obj, raw_ostream &OS, StringRef OutputFile)
Error finalize () override
Public Member Functions inherited from llvm::objcopy:🧝:Writer
virtual ~Writer ()
virtual Error write ()=0
Writer (Object &O, raw_ostream &Out)
Protected Attributes
StringRef OutputFileName
size_t TotalSize = 0
std::vector< const SectionBase * > Sections
Protected Attributes inherited from llvm::objcopy:🧝:Writer
Object & Obj
std::unique_ptr< WritableMemoryBuffer > Buf
raw_ostream & Out

Detailed Description

Constructor & Destructor Documentation

Member Function Documentation

checkSection()

finalize()

Error ASCIIHexWriter::finalize ( ) overridevirtual

Implements llvm::objcopy:🧝:Writer.

Definition at line 2777 of file ELFObject.cpp.

References A(), addressOverflows32bit(), B(), llvm::objcopy:🧝:Writer::Buf, checkSection(), llvm::createStringError(), llvm::WritableMemoryBuffer::getNewMemBuffer(), getTotalSize(), llvm::invalid_argument, llvm::not_enough_memory, llvm::objcopy:🧝:Writer::Obj, sectionPhysicalAddr(), Sections, llvm::ELF::SHF_ALLOC, llvm::ELF::SHT_NOBITS, llvm::sort(), llvm::Error::success(), llvm::Expected< T >::takeError(), TotalSize, and llvm::Twine::utohexstr().

getTotalSize()

virtual Expected< size_t > llvm::objcopy:🧝:ASCIIHexWriter::getTotalSize ( WritableMemoryBuffer & EmptyBuffer) const protectedpure virtual

Member Data Documentation

OutputFileName

StringRef llvm::objcopy:🧝:ASCIIHexWriter::OutputFileName protected

Sections

TotalSize

size_t llvm::objcopy:🧝:ASCIIHexWriter::TotalSize = 0 protected

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