LLVM: llvm::object::SectionRef Class Reference (original) (raw)

This is a value type class that represents a single section in the list of sections in the object file. More...

#include "[llvm/Object/ObjectFile.h](ObjectFile%5F8h%5Fsource.html)"

Public Member Functions
SectionRef ()=default
SectionRef (DataRefImpl SectionP, const ObjectFile *Owner)
SectionRef.
bool operator== (const SectionRef &Other) const
bool operator!= (const SectionRef &Other) const
bool operator< (const SectionRef &Other) const
void moveNext ()
Expected< StringRef > getName () const
uint64_t getAddress () const
uint64_t getIndex () const
uint64_t getSize () const
Expected< StringRef > getContents () const
Align getAlignment () const
Get the alignment of this section.
bool isCompressed () const
bool isText () const
Whether this section contains instructions.
bool isData () const
Whether this section contains data, not instructions.
bool isBSS () const
Whether this section contains BSS uninitialized data.
bool isVirtual () const
bool isBitcode () const
bool isStripped () const
bool isBerkeleyText () const
Whether this section will be placed in the text segment, according to the Berkeley size format.
bool isBerkeleyData () const
Whether this section will be placed in the data segment, according to the Berkeley size format.
bool isDebugSection () const
Whether this section is a debug section.
LLVM_ABI bool containsSymbol (SymbolRef S) const
relocation_iterator relocation_begin () const
relocation_iterator relocation_end () const
iterator_range< relocation_iterator > relocations () const
Expected< section_iterator > getRelocatedSection () const
Returns the related section if this section contains relocations.
DataRefImpl getRawDataRefImpl () const
const ObjectFile * getObject () const

This is a value type class that represents a single section in the list of sections in the object file.

Definition at line 83 of file ObjectFile.h.

llvm::object::SectionRef::SectionRef ( ) default

SectionRef() [2/2]

containsSymbol()

getAddress()

uint64_t llvm::object::SectionRef::getAddress ( ) const inline

getAlignment()

Align llvm::object::SectionRef::getAlignment ( ) const inline

getContents()

getIndex()

uint64_t llvm::object::SectionRef::getIndex ( ) const inline

getName()

getObject()

getRawDataRefImpl()

DataRefImpl llvm::object::SectionRef::getRawDataRefImpl ( ) const inline

getRelocatedSection()

Returns the related section if this section contains relocations.

The returned section may or may not have applied its relocations.

Definition at line 599 of file ObjectFile.h.

getSize()

uint64_t llvm::object::SectionRef::getSize ( ) const inline

isBerkeleyData()

bool llvm::object::SectionRef::isBerkeleyData ( ) const inline

Whether this section will be placed in the data segment, according to the Berkeley size format.

This is true if the section is allocatable and contains data (e.g. PROGBITS), but is not text.

Definition at line 583 of file ObjectFile.h.

isBerkeleyText()

bool llvm::object::SectionRef::isBerkeleyText ( ) const inline

Whether this section will be placed in the text segment, according to the Berkeley size format.

This is true if the section is allocatable, and contains either code or readonly data.

Definition at line 579 of file ObjectFile.h.

isBitcode()

bool llvm::object::SectionRef::isBitcode ( ) const inline

isBSS()

bool llvm::object::SectionRef::isBSS ( ) const inline

isCompressed()

bool llvm::object::SectionRef::isCompressed ( ) const inline

isData()

bool llvm::object::SectionRef::isData ( ) const inline

isDebugSection()

bool llvm::object::SectionRef::isDebugSection ( ) const inline

isStripped()

bool llvm::object::SectionRef::isStripped ( ) const inline

isText()

bool llvm::object::SectionRef::isText ( ) const inline

isVirtual()

bool llvm::object::SectionRef::isVirtual ( ) const inline

moveNext()

void llvm::object::SectionRef::moveNext ( ) inline

operator!=()

operator<()

operator==()

relocation_begin()

relocation_end()

relocations()

SymbolRef


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