LLVM  10.0.0svn
Public Types | Public Member Functions | Friends | List of all members
llvm::jitlink::Section Class Reference

Represents an object file section. More...

#include "llvm/ExecutionEngine/JITLink/JITLink.h"

Public Types

using symbol_iterator = SymbolSet::iterator
 
using const_symbol_iterator = SymbolSet::const_iterator
 
using block_iterator = BlockSet::iterator
 
using const_block_iterator = BlockSet::const_iterator
 

Public Member Functions

 ~Section ()
 
StringRef getName () const
 Returns the name of this section. More...
 
sys::Memory::ProtectionFlags getProtectionFlags () const
 Returns the protection flags for this section. More...
 
SectionOrdinal getOrdinal () const
 Returns the ordinal for this section. More...
 
iterator_range< symbol_iteratorsymbols ()
 Returns an iterator over the symbols defined in this section. More...
 
iterator_range< const_symbol_iteratorsymbols () const
 Returns an iterator over the symbols defined in this section. More...
 
SymbolSet::size_type symbols_size ()
 Return the number of symbols in this section. More...
 
bool symbols_empty () const
 Return true if this section contains no symbols. More...
 
BlockOrdinal getNextBlockOrdinal ()
 Returns the ordinal for the next block. More...
 

Friends

class LinkGraph
 

Detailed Description

Represents an object file section.

Definition at line 506 of file JITLink.h.

Member Typedef Documentation

◆ block_iterator

Definition at line 521 of file JITLink.h.

◆ const_block_iterator

Definition at line 522 of file JITLink.h.

◆ const_symbol_iterator

Definition at line 519 of file JITLink.h.

◆ symbol_iterator

Definition at line 518 of file JITLink.h.

Constructor & Destructor Documentation

◆ ~Section()

llvm::jitlink::Section::~Section ( )

Definition at line 145 of file JITLink.cpp.

Member Function Documentation

◆ getName()

StringRef llvm::jitlink::Section::getName ( ) const
inline

Returns the name of this section.

Definition at line 527 of file JITLink.h.

References Name.

Referenced by llvm::jitlink::operator<<().

◆ getNextBlockOrdinal()

BlockOrdinal llvm::jitlink::Section::getNextBlockOrdinal ( )
inline

Returns the ordinal for the next block.

Definition at line 552 of file JITLink.h.

References assert(), and Name.

Referenced by llvm::jitlink::LinkGraph::addCommonSymbol(), llvm::jitlink::LinkGraph::createContentBlock(), and llvm::jitlink::LinkGraph::createZeroFillBlock().

◆ getOrdinal()

SectionOrdinal llvm::jitlink::Section::getOrdinal ( ) const
inline

Returns the ordinal for this section.

Definition at line 533 of file JITLink.h.

◆ getProtectionFlags()

sys::Memory::ProtectionFlags llvm::jitlink::Section::getProtectionFlags ( ) const
inline

Returns the protection flags for this section.

Definition at line 530 of file JITLink.h.

◆ symbols() [1/2]

iterator_range<symbol_iterator> llvm::jitlink::Section::symbols ( )
inline

Returns an iterator over the symbols defined in this section.

Definition at line 536 of file JITLink.h.

References llvm::make_range().

Referenced by llvm::jitlink::SectionRange::SectionRange().

◆ symbols() [2/2]

iterator_range<const_symbol_iterator> llvm::jitlink::Section::symbols ( ) const
inline

Returns an iterator over the symbols defined in this section.

Definition at line 541 of file JITLink.h.

References llvm::make_range().

◆ symbols_empty()

bool llvm::jitlink::Section::symbols_empty ( ) const
inline

Return true if this section contains no symbols.

Definition at line 549 of file JITLink.h.

Referenced by llvm::jitlink::SectionRange::SectionRange().

◆ symbols_size()

SymbolSet::size_type llvm::jitlink::Section::symbols_size ( )
inline

Return the number of symbols in this section.

Definition at line 546 of file JITLink.h.

Friends And Related Function Documentation

◆ LinkGraph

friend class LinkGraph
friend

Definition at line 507 of file JITLink.h.


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