LLVM 20.0.0git
|
#include "ObjCopy/ELF/ELFObject.h"
Public Member Functions | |
virtual | ~ELFWriter () |
Error | finalize () override |
Error | write () override |
ELFWriter (Object &Obj, raw_ostream &Out, bool WSH, bool OnlyKeepDebug) | |
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) | |
Public Attributes | |
bool | WriteSectionHeaders |
bool | OnlyKeepDebug |
Additional Inherited Members | |
Protected Attributes inherited from llvm::objcopy::elf::Writer | |
Object & | Obj |
std::unique_ptr< WritableMemoryBuffer > | Buf |
raw_ostream & | Out |
Definition at line 324 of file ELFObject.h.
|
inlinevirtual |
Definition at line 349 of file ELFObject.h.
ELFWriter::ELFWriter | ( | Object & | Obj, |
raw_ostream & | Out, | ||
bool | WSH, | ||
bool | OnlyKeepDebug | ||
) |
Definition at line 2155 of file ELFObject.cpp.
|
overridevirtual |
Implements llvm::objcopy::elf::Writer.
Definition at line 2570 of file ELFObject.cpp.
References llvm::any_of(), llvm::createStringError(), llvm::drop_begin(), llvm::WritableMemoryBuffer::getNewMemBuffer(), llvm::objcopy::elf::SectionBase::HasSymbol, llvm::invalid_argument, llvm::not_enough_memory, llvm::Offset, removeUnneededSections(), llvm::objcopy::elf::SectionIndexSection::setSymTab(), llvm::ELF::SHN_LORESERVE, llvm::Error::success(), and llvm::Twine::utohexstr().
|
overridevirtual |
Implements llvm::objcopy::elf::Writer.
Definition at line 2534 of file ELFObject.cpp.
References llvm::Error::success().
bool llvm::objcopy::elf::ELFWriter< ELFT >::OnlyKeepDebug |
Definition at line 354 of file ELFObject.h.
bool llvm::objcopy::elf::ELFWriter< ELFT >::WriteSectionHeaders |
Definition at line 350 of file ELFObject.h.