LLVM 20.0.0git
|
#include "ObjCopy/COFF/COFFObject.h"
Public Member Functions | |
ArrayRef< Symbol > | getSymbols () const |
iterator_range< std::vector< Symbol >::iterator > | getMutableSymbols () |
const Symbol * | findSymbol (size_t UniqueId) const |
void | addSymbols (ArrayRef< Symbol > NewSymbols) |
Error | removeSymbols (function_ref< Expected< bool >(const Symbol &)> ToRemove) |
Error | markSymbols () |
ArrayRef< Section > | getSections () const |
iterator_range< std::vector< Section >::iterator > | getMutableSections () |
const Section * | findSection (ssize_t UniqueId) const |
void | addSections (ArrayRef< Section > NewSections) |
void | removeSections (function_ref< bool(const Section &)> ToRemove) |
void | truncateSections (function_ref< bool(const Section &)> ToTruncate) |
Public Attributes | |
bool | IsPE = false |
object::dos_header | DosHeader |
ArrayRef< uint8_t > | DosStub |
object::coff_file_header | CoffFileHeader |
bool | Is64 = false |
object::pe32plus_header | PeHeader |
uint32_t | BaseOfData = 0 |
std::vector< object::data_directory > | DataDirectories |
Definition at line 95 of file COFFObject.h.
Definition at line 67 of file COFFObject.cpp.
Referenced by llvm::objcopy::coff::addSection().
Definition at line 18 of file COFFObject.cpp.
Definition at line 84 of file COFFObject.cpp.
Definition at line 32 of file COFFObject.cpp.
|
inline |
Definition at line 128 of file COFFObject.h.
References llvm::make_range().
Referenced by llvm::objcopy::coff::handleArgs().
|
inline |
Definition at line 112 of file COFFObject.h.
References llvm::make_range().
Referenced by llvm::objcopy::coff::handleArgs().
Definition at line 125 of file COFFObject.h.
Referenced by llvm::objcopy::coff::getNextRVA(), and llvm::objcopy::coff::COFFWriter::write().
Definition at line 109 of file COFFObject.h.
Error llvm::objcopy::coff::Object::markSymbols | ( | ) |
Definition at line 52 of file COFFObject.cpp.
References llvm::createStringError(), llvm::Error::success(), and Sym.
Referenced by llvm::objcopy::coff::handleArgs().
void llvm::objcopy::coff::Object::removeSections | ( | function_ref< bool(const Section &)> | ToRemove | ) |
Definition at line 88 of file COFFObject.cpp.
References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::clear(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::contains(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::empty(), llvm::erase_if(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), Sym, ToRemove, and llvm::objcopy::coff::Section::UniqueId.
Referenced by llvm::objcopy::coff::handleArgs().
Error llvm::objcopy::coff::Object::removeSymbols | ( | function_ref< Expected< bool >(const Symbol &)> | ToRemove | ) |
Definition at line 36 of file COFFObject.cpp.
References llvm::erase_if(), llvm::joinErrors(), llvm::Error::success(), Sym, llvm::Expected< T >::takeError(), and ToRemove.
Referenced by llvm::objcopy::coff::handleArgs().
void llvm::objcopy::coff::Object::truncateSections | ( | function_ref< bool(const Section &)> | ToTruncate | ) |
Definition at line 119 of file COFFObject.cpp.
Referenced by llvm::objcopy::coff::handleArgs().
uint32_t llvm::objcopy::coff::Object::BaseOfData = 0 |
Definition at line 105 of file COFFObject.h.
object::coff_file_header llvm::objcopy::coff::Object::CoffFileHeader |
Definition at line 101 of file COFFObject.h.
std::vector<object::data_directory> llvm::objcopy::coff::Object::DataDirectories |
Definition at line 107 of file COFFObject.h.
object::dos_header llvm::objcopy::coff::Object::DosHeader |
Definition at line 98 of file COFFObject.h.
Definition at line 99 of file COFFObject.h.
bool llvm::objcopy::coff::Object::Is64 = false |
Definition at line 103 of file COFFObject.h.
bool llvm::objcopy::coff::Object::IsPE = false |
Definition at line 96 of file COFFObject.h.
Referenced by llvm::objcopy::coff::addSection(), llvm::objcopy::coff::getNextRVA(), llvm::objcopy::coff::handleArgs(), and llvm::objcopy::coff::COFFWriter::write().
object::pe32plus_header llvm::objcopy::coff::Object::PeHeader |
Definition at line 104 of file COFFObject.h.
Referenced by llvm::objcopy::coff::addSection(), llvm::objcopy::coff::getNextRVA(), and llvm::objcopy::coff::handleArgs().