LLVM  6.0.0svn
Public Member Functions | Friends | List of all members
llvm::object::SectionRef Class Reference

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"

Inheritance diagram for llvm::object::SectionRef:
Inheritance graph
[legend]

Public Member Functions

 SectionRef ()=default
 
 SectionRef (DataRefImpl SectionP, const ObjectFile *Owner)
 SectionRef. More...
 
bool operator== (const SectionRef &Other) const
 
bool operator!= (const SectionRef &Other) const
 
bool operator< (const SectionRef &Other) const
 
void moveNext ()
 
std::error_code getName (StringRef &Result) const
 
uint64_t getAddress () const
 
uint64_t getIndex () const
 
uint64_t getSize () const
 
std::error_code getContents (StringRef &Result) const
 
uint64_t getAlignment () const
 Get the alignment of this section as the actual value (not log 2). More...
 
bool isCompressed () const
 
bool isText () const
 
bool isData () const
 
bool isBSS () const
 
bool isVirtual () const
 
bool isBitcode () const
 
bool isStripped () const
 
bool containsSymbol (SymbolRef S) const
 
relocation_iterator relocation_begin () const
 
relocation_iterator relocation_end () const
 
iterator_range< relocation_iteratorrelocations () const
 
section_iterator getRelocatedSection () const
 
DataRefImpl getRawDataRefImpl () const
 
const ObjectFilegetObject () const
 

Friends

class SymbolRef
 

Detailed Description

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

Definition at line 80 of file ObjectFile.h.

Constructor & Destructor Documentation

◆ SectionRef() [1/2]

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

◆ SectionRef() [2/2]

llvm::object::SectionRef::SectionRef ( DataRefImpl  SectionP,
const ObjectFile Owner 
)
inline

SectionRef.

Definition at line 377 of file ObjectFile.h.

Member Function Documentation

◆ containsSymbol()

bool SectionRef::containsSymbol ( SymbolRef  S) const

◆ getAddress()

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

◆ getAlignment()

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

Get the alignment of this section as the actual value (not log 2).

Definition at line 418 of file ObjectFile.h.

References llvm::object::ObjectFile::getSectionAlignment().

Referenced by llvm::RuntimeDyldImpl::computeSectionStubBufSize(), llvm::RuntimeDyldImpl::computeTotalAllocSize(), and llvm::RuntimeDyldImpl::emitSection().

◆ getContents()

std::error_code llvm::object::SectionRef::getContents ( StringRef Result) const
inline

◆ getIndex()

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

Definition at line 406 of file ObjectFile.h.

References llvm::object::ObjectFile::getSectionIndex().

◆ getName()

std::error_code llvm::object::SectionRef::getName ( StringRef Result) const
inline

◆ getObject()

const ObjectFile * llvm::object::SectionRef::getObject ( ) const
inline

◆ getRawDataRefImpl()

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

◆ getRelocatedSection()

section_iterator llvm::object::SectionRef::getRelocatedSection ( ) const
inline

Definition at line 458 of file ObjectFile.h.

References llvm::object::ObjectFile::getRelocatedSection().

◆ getSize()

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

◆ isBitcode()

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

Definition at line 442 of file ObjectFile.h.

References llvm::object::ObjectFile::isSectionBitcode().

◆ isBSS()

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

Definition at line 434 of file ObjectFile.h.

References llvm::object::ObjectFile::isSectionBSS().

◆ isCompressed()

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

◆ isData()

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

Definition at line 430 of file ObjectFile.h.

References llvm::object::ObjectFile::isSectionData().

◆ isStripped()

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

Definition at line 446 of file ObjectFile.h.

References llvm::object::ObjectFile::isSectionStripped().

◆ isText()

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

◆ isVirtual()

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

◆ moveNext()

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

Definition at line 394 of file ObjectFile.h.

References llvm::object::ObjectFile::moveSectionNext().

◆ operator!=()

bool llvm::object::SectionRef::operator!= ( const SectionRef Other) const
inline

Definition at line 386 of file ObjectFile.h.

◆ operator<()

bool llvm::object::SectionRef::operator< ( const SectionRef Other) const
inline

Definition at line 390 of file ObjectFile.h.

◆ operator==()

bool llvm::object::SectionRef::operator== ( const SectionRef Other) const
inline

Definition at line 382 of file ObjectFile.h.

◆ relocation_begin()

relocation_iterator llvm::object::SectionRef::relocation_begin ( ) const
inline

Definition at line 450 of file ObjectFile.h.

References llvm::object::ObjectFile::section_rel_begin().

◆ relocation_end()

relocation_iterator llvm::object::SectionRef::relocation_end ( ) const
inline

Definition at line 454 of file ObjectFile.h.

References llvm::object::ObjectFile::section_rel_end().

◆ relocations()

iterator_range<relocation_iterator> llvm::object::SectionRef::relocations ( ) const
inline

Friends And Related Function Documentation

◆ SymbolRef

friend class SymbolRef
friend

Definition at line 81 of file ObjectFile.h.


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