LLVM 22.0.0git
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.

Referenced by SectionTableRef().

◆ SectionTableRef() [2/2]

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

References SectionTableRef().

Member Function Documentation

◆ begin()

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

Definition at line 60 of file ELFObject.h.

◆ end()

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

Definition at line 61 of file ELFObject.h.

◆ getSection()

◆ getSectionOfType()

◆ size()

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

Definition at line 62 of file ELFObject.h.

Referenced by layoutSectionsForOnlyKeepDebug().


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