LLVM 20.0.0git
Public Types | Public Member Functions | List of all members
llvm::objcopy::elf::SectionTableRef Class Reference

#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)
 

Detailed Description

Definition at line 50 of file ELFObject.h.

Member Typedef Documentation

◆ iterator

Definition at line 54 of file ELFObject.h.

Constructor & Destructor Documentation

◆ SectionTableRef() [1/2]

llvm::objcopy::elf::SectionTableRef::SectionTableRef ( ArrayRef< std::unique_ptr< SectionBase > >  Secs)
inlineexplicit

Definition at line 56 of file ELFObject.h.

◆ SectionTableRef() [2/2]

llvm::objcopy::elf::SectionTableRef::SectionTableRef ( const SectionTableRef )
default

Member Function Documentation

◆ begin()

iterator llvm::objcopy::elf::SectionTableRef::begin ( ) const
inline

Definition at line 60 of file ELFObject.h.

References llvm::ArrayRef< T >::data().

◆ end()

iterator llvm::objcopy::elf::SectionTableRef::end ( ) const
inline

Definition at line 61 of file ELFObject.h.

References llvm::ArrayRef< T >::data(), and llvm::ArrayRef< T >::size().

◆ getSection()

Expected< SectionBase * > SectionTableRef::getSection ( uint32_t  Index,
Twine  ErrMsg 
)

◆ getSectionOfType()

template<class T >
Expected< T * > SectionTableRef::getSectionOfType ( uint32_t  Index,
Twine  IndexErrMsg,
Twine  TypeErrMsg 
)

◆ size()

size_t llvm::objcopy::elf::SectionTableRef::size ( ) const
inline

Definition at line 62 of file ELFObject.h.

References llvm::ArrayRef< T >::size().

Referenced by layoutSectionsForOnlyKeepDebug().


The documentation for this class was generated from the following files: