LLVM  3.7.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 isText () const
 
bool isData () const
 
bool isBSS () const
 
bool isVirtual () 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 69 of file ObjectFile.h.

Constructor & Destructor Documentation

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

Definition at line 75 of file ObjectFile.h.

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

SectionRef.

Definition at line 341 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 378 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 406 of file ObjectFile.h.

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

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

Definition at line 390 of file ObjectFile.h.

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

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

Definition at line 386 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 358 of file ObjectFile.h.

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

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

Definition at line 350 of file ObjectFile.h.

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

Definition at line 354 of file ObjectFile.h.

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

Definition at line 346 of file ObjectFile.h.

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

Definition at line 398 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 402 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 102 of file ObjectFile.h.

References relocation_begin(), and relocation_end().

Friends And Related Function Documentation

friend class SymbolRef
friend

Definition at line 70 of file ObjectFile.h.


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