|
LLVM 22.0.0git
|
#include "ObjCopy/ELF/ELFObject.h"
Public Types | |
| using | iterator = pointee_iterator<const std::unique_ptr<SectionBase> *> |
Public Member Functions | |
| SectionTableRef (ArrayRef< std::unique_ptr< SectionBase > > Secs) | |
| SectionTableRef (const SectionTableRef &)=default | |
| iterator | begin () const |
| iterator | end () const |
| size_t | size () const |
| Expected< SectionBase * > | getSection (uint32_t Index, Twine ErrMsg) |
| template<class T> | |
| Expected< T * > | getSectionOfType (uint32_t Index, Twine IndexErrMsg, Twine TypeErrMsg) |
Definition at line 50 of file ELFObject.h.
| using llvm::objcopy::elf::SectionTableRef::iterator = pointee_iterator<const std::unique_ptr<SectionBase> *> |
Definition at line 54 of file ELFObject.h.
|
inlineexplicit |
Definition at line 56 of file ELFObject.h.
Referenced by SectionTableRef().
|
default |
References SectionTableRef().
|
inline |
Definition at line 60 of file ELFObject.h.
|
inline |
Definition at line 61 of file ELFObject.h.
| Expected< SectionBase * > SectionTableRef::getSection | ( | uint32_t | Index, |
| Twine | ErrMsg ) |
Definition at line 1685 of file ELFObject.cpp.
References llvm::createStringError(), llvm::invalid_argument, and llvm::ELF::SHN_UNDEF.
Referenced by getSectionOfType(), llvm::objcopy::elf::RelocSectionWithSymtabBase< SymTabType >::initialize(), and llvm::objcopy::elf::Section::initialize().
| Expected< T * > SectionTableRef::getSectionOfType | ( | uint32_t | Index, |
| Twine | IndexErrMsg, | ||
| Twine | TypeErrMsg ) |
Definition at line 1693 of file ELFObject.cpp.
References llvm::createStringError(), llvm::dyn_cast(), getSection(), llvm::invalid_argument, T, and llvm::Expected< T >::takeError().
Referenced by llvm::objcopy::elf::RelocSectionWithSymtabBase< SymTabType >::initialize(), llvm::objcopy::elf::SectionIndexSection::initialize(), and llvm::objcopy::elf::SymbolTableSection::initialize().
|
inline |
Definition at line 62 of file ELFObject.h.
Referenced by layoutSectionsForOnlyKeepDebug().