LLVM  4.0.0
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 <ObjectFile.h>

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

Public Member Functions

 SectionRef ()
 
 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 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 containsSymbol (SymbolRef S) const
 
relocation_iterator relocation_begin () const
 
relocation_iterator relocation_end () const
 
iterator_range
< relocation_iterator
relocations () 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 70 of file ObjectFile.h.

Constructor & Destructor Documentation

llvm::object::SectionRef::SectionRef ( )
inline

Definition at line 76 of file ObjectFile.h.

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

SectionRef.

Definition at line 351 of file ObjectFile.h.

Member Function Documentation

bool SectionRef::containsSymbol ( SymbolRef  S) const
uint64_t llvm::object::SectionRef::getAddress ( ) const
inline
uint64_t llvm::object::SectionRef::getAlignment ( ) const
inline

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

Definition at line 388 of file ObjectFile.h.

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

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

std::error_code llvm::object::SectionRef::getContents ( StringRef Result) const
inline
std::error_code llvm::object::SectionRef::getName ( StringRef Result) const
inline
const ObjectFile * llvm::object::SectionRef::getObject ( ) const
inline
DataRefImpl llvm::object::SectionRef::getRawDataRefImpl ( ) const
inline
section_iterator llvm::object::SectionRef::getRelocatedSection ( ) const
inline

Definition at line 424 of file ObjectFile.h.

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

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

Definition at line 412 of file ObjectFile.h.

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

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

Definition at line 404 of file ObjectFile.h.

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

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

Definition at line 400 of file ObjectFile.h.

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

bool llvm::object::SectionRef::isText ( ) const
inline
bool llvm::object::SectionRef::isVirtual ( ) const
inline
void llvm::object::SectionRef::moveNext ( )
inline

Definition at line 368 of file ObjectFile.h.

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

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

Definition at line 360 of file ObjectFile.h.

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

Definition at line 364 of file ObjectFile.h.

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

Definition at line 356 of file ObjectFile.h.

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

Definition at line 416 of file ObjectFile.h.

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

Referenced by relocations().

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

Definition at line 420 of file ObjectFile.h.

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

Referenced by relocations().

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

Definition at line 105 of file ObjectFile.h.

References llvm::make_range(), relocation_begin(), and relocation_end().

Friends And Related Function Documentation

friend class SymbolRef
friend

Definition at line 71 of file ObjectFile.h.


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