LLVM 20.0.0git
|
#include "ObjCopy/ELF/ELFObject.h"
Public Member Functions | |
ASCIIHexWriter (Object &Obj, raw_ostream &OS, StringRef OutputFile) | |
Error | finalize () override |
Public Member Functions inherited from llvm::objcopy::elf::Writer | |
virtual | ~Writer () |
virtual Error | finalize ()=0 |
virtual Error | write ()=0 |
Writer (Object &O, raw_ostream &Out) | |
Protected Member Functions | |
Error | checkSection (const SectionBase &S) const |
virtual Expected< size_t > | getTotalSize (WritableMemoryBuffer &EmptyBuffer) const =0 |
Protected Attributes | |
StringRef | OutputFileName |
size_t | TotalSize = 0 |
std::vector< const SectionBase * > | Sections |
Protected Attributes inherited from llvm::objcopy::elf::Writer | |
Object & | Obj |
std::unique_ptr< WritableMemoryBuffer > | Buf |
raw_ostream & | Out |
Definition at line 378 of file ELFObject.h.
|
inline |
Definition at line 380 of file ELFObject.h.
|
protected |
Definition at line 2758 of file ELFObject.cpp.
References llvm::objcopy::elf::SectionBase::Addr, addressOverflows32bit(), llvm::createStringError(), llvm::invalid_argument, llvm::objcopy::elf::SectionBase::Name, llvm::objcopy::elf::SectionBase::Size, and llvm::Error::success().
Referenced by finalize().
|
overridevirtual |
Implements llvm::objcopy::elf::Writer.
Definition at line 2768 of file ELFObject.cpp.
References A, addressOverflows32bit(), B, llvm::objcopy::elf::Writer::Buf, checkSection(), llvm::createStringError(), llvm::objcopy::elf::Object::Entry, llvm::WritableMemoryBuffer::getNewMemBuffer(), getTotalSize(), llvm::invalid_argument, llvm::not_enough_memory, llvm::objcopy::elf::Writer::Obj, sectionPhysicalAddr(), Sections, llvm::objcopy::elf::Object::sections(), llvm::ELF::SHF_ALLOC, llvm::ELF::SHT_NOBITS, llvm::sort(), llvm::Error::success(), llvm::Expected< T >::takeError(), TotalSize, and llvm::Twine::utohexstr().
|
protectedpure virtual |
Referenced by finalize().
|
protected |
Definition at line 385 of file ELFObject.h.
|
protected |
Definition at line 387 of file ELFObject.h.
Referenced by finalize(), llvm::objcopy::elf::IHexWriter::write(), and llvm::objcopy::elf::SRECWriter::write().
|
protected |
Definition at line 386 of file ELFObject.h.
Referenced by finalize(), llvm::objcopy::elf::IHexWriter::write(), and llvm::objcopy::elf::SRECWriter::write().