llvm::object::SectionRef

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

Synopsis

Declared in <llvm/Object/ObjectFile.h>

class SectionRef;

Member Functions

NameDescription
SectionRef [constructor]Constructors
containsSymbol True if this section contains symbol S.
getAddress Virtual address at which this section is loaded.
getAlignment Get the alignment of this section.
getContents Raw contents of this section, or an error if unavailable.
getIndex Index of this section within the object file.
getName Section name, or an error if unavailable.
getObject Returns the ObjectFile that owns this section.
getRawDataRefImpl Opaque format-specific handle for this section.
getRelocatedSection Returns the related section if this section contains relocations. The returned section may or may not have applied its relocations.
getSize Size of this section in bytes.
isBSS Whether this section contains BSS uninitialized data.
isBerkeleyData True if this section counts as Berkeley data (allocatable data, not text).
isBerkeleyText True if this section counts as Berkeley text (allocatable code/rodata).
isBitcode True if this section holds LLVM IR bitcode.
isCompressed True if this section's contents are compressed.
isData Whether this section contains data, not instructions.
isDebugSection Whether this section is a debug section.
isStripped True if this section's contents were stripped from the object.
isText Whether this section contains instructions.
isVirtual True if the section's contents are not present in the object image.
moveNext Advance to the next section in the owning object file.
relocation_begin Iterator to the first relocation in this section.
relocation_end Past-the-end iterator for relocations in this section.
relocations Range of relocations in this section.
operator== True if this section refers to the same entry as Other.
operator!= True if this section refers to a different entry than Other.
operator< Order sections by their opaque DataRefImpl for use in ordered containers.

Friends

NameDescription
llvm::object::SymbolRefThis is a value type class that represents a single symbol in the list of symbols in the object file.

Derived Classes

NameDescription
ELFSectionRef SectionRef specialized for ELF section metadata.