LLVM 20.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.
|
default |
|
inline |
Definition at line 60 of file ELFObject.h.
References llvm::ArrayRef< T >::data().
|
inline |
Definition at line 61 of file ELFObject.h.
References llvm::ArrayRef< T >::data(), and llvm::ArrayRef< T >::size().
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::Section::initialize(), and llvm::objcopy::elf::RelocSectionWithSymtabBase< SymTabType >::initialize().
Expected< T * > SectionTableRef::getSectionOfType | ( | uint32_t | Index, |
Twine | IndexErrMsg, | ||
Twine | TypeErrMsg | ||
) |
Definition at line 1693 of file ELFObject.cpp.
References llvm::createStringError(), getSection(), llvm::invalid_argument, and llvm::Expected< T >::takeError().
Referenced by llvm::objcopy::elf::SectionIndexSection::initialize(), llvm::objcopy::elf::SymbolTableSection::initialize(), and llvm::objcopy::elf::RelocSectionWithSymtabBase< SymTabType >::initialize().
|
inline |
Definition at line 62 of file ELFObject.h.
References llvm::ArrayRef< T >::size().
Referenced by layoutSectionsForOnlyKeepDebug().