LLVM 17.0.0git
|
#include "llvm/Object/ELFTypes.h"
Public Member Functions | |
Elf_Note_Impl (const Elf_Nhdr_Impl< ELFT > &Nhdr) | |
StringRef | getName () const |
Get the note's name, excluding the terminating null byte. | |
ArrayRef< uint8_t > | getDesc () const |
Get the note's descriptor. | |
StringRef | getDescAsStringRef () const |
Get the note's descriptor as StringRef. | |
Elf_Word | getType () const |
Get the note's type. | |
Friends | |
template<class NoteIteratorELFT > | |
class | Elf_Note_Iterator_Impl |
An ELF note.
Wraps a note header, providing methods for accessing the name and descriptor safely.
Definition at line 619 of file ELFTypes.h.
|
inline |
Definition at line 627 of file ELFTypes.h.
|
inline |
Get the note's descriptor.
Definition at line 638 of file ELFTypes.h.
References alignTo(), llvm::object::Elf_Nhdr_Impl< ELFT >::n_descsz, and llvm::object::Elf_Nhdr_Impl< ELFT >::n_namesz.
|
inline |
Get the note's descriptor as StringRef.
Definition at line 648 of file ELFTypes.h.
References llvm::ArrayRef< T >::data(), and llvm::ArrayRef< T >::size().
|
inline |
Get the note's name, excluding the terminating null byte.
Definition at line 630 of file ELFTypes.h.
References llvm::object::Elf_Nhdr_Impl< ELFT >::n_namesz.
|
inline |
Get the note's type.
Definition at line 654 of file ELFTypes.h.
References llvm::object::Elf_Nhdr_Impl< ELFT >::n_type.
Definition at line 624 of file ELFTypes.h.