LLVM  5.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 "llvm/Object/ObjectFile.h"

Inheritance diagram for llvm::object::SectionRef:
[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 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 ObjectFile * getObject () 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 81 of file ObjectFile.h.

Constructor & Destructor Documentation

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

SectionRef.

Definition at line 373 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 414 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
uint64_t llvm::object::SectionRef::getIndex ( ) const
inline

Definition at line 402 of file ObjectFile.h.

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

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 450 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 438 of file ObjectFile.h.

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

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

Definition at line 430 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 426 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 390 of file ObjectFile.h.

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

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

Definition at line 382 of file ObjectFile.h.

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

Definition at line 386 of file ObjectFile.h.

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

Definition at line 378 of file ObjectFile.h.

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

Definition at line 442 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 446 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 117 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 82 of file ObjectFile.h.


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