LLVM  14.0.0git
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 ()
 
 Section (const Section &)=delete
 
Sectionoperator= (const Section &)=delete
 
 Section (Section &&)=delete
 
Sectionoperator= (Section &&)=delete
 
StringRef getName () const
 Returns the name of this section. More...
 
sys::Memory::ProtectionFlags getProtectionFlags () const
 Returns the protection flags for this section. More...
 
void setProtectionFlags (sys::Memory::ProtectionFlags Prot)
 Set the protection flags for this section. More...
 
SectionOrdinal getOrdinal () const
 Returns the ordinal for this section. More...
 
iterator_range< block_iteratorblocks ()
 Returns an iterator over the blocks defined in this section. More...
 
iterator_range< const_block_iteratorblocks () const
 Returns an iterator over the blocks defined in this section. More...
 
BlockSet::size_type blocks_size () const
 
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 () const
 Return the number of symbols in this section. More...
 

Friends

class LinkGraph
 

Detailed Description

Represents an object file section.

Definition at line 639 of file JITLink.h.

Member Typedef Documentation

◆ block_iterator

Definition at line 654 of file JITLink.h.

◆ const_block_iterator

Definition at line 655 of file JITLink.h.

◆ const_symbol_iterator

Definition at line 652 of file JITLink.h.

◆ symbol_iterator

Definition at line 651 of file JITLink.h.

Constructor & Destructor Documentation

◆ ~Section()

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

Definition at line 146 of file JITLink.cpp.

References B.

◆ Section() [1/2]

llvm::jitlink::Section::Section ( const Section )
delete

◆ Section() [2/2]

llvm::jitlink::Section::Section ( Section &&  )
delete

Member Function Documentation

◆ blocks() [1/2]

iterator_range<block_iterator> llvm::jitlink::Section::blocks ( )
inline

◆ blocks() [2/2]

iterator_range<const_block_iterator> llvm::jitlink::Section::blocks ( ) const
inline

Returns an iterator over the blocks defined in this section.

Definition at line 685 of file JITLink.h.

References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::begin(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::end(), and llvm::make_range().

◆ blocks_size()

BlockSet::size_type llvm::jitlink::Section::blocks_size ( ) const
inline

◆ getName()

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

Returns the name of this section.

Definition at line 666 of file JITLink.h.

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

◆ getOrdinal()

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

Returns the ordinal for this section.

Definition at line 677 of file JITLink.h.

◆ getProtectionFlags()

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

Returns the protection flags for this section.

Definition at line 669 of file JITLink.h.

◆ operator=() [1/2]

Section& llvm::jitlink::Section::operator= ( const Section )
delete

◆ operator=() [2/2]

Section& llvm::jitlink::Section::operator= ( Section &&  )
delete

◆ setProtectionFlags()

void llvm::jitlink::Section::setProtectionFlags ( sys::Memory::ProtectionFlags  Prot)
inline

Set the protection flags for this section.

Definition at line 672 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 692 of file JITLink.h.

References llvm::make_range().

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

◆ 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 697 of file JITLink.h.

References llvm::make_range().

◆ symbols_size()

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

Return the number of symbols in this section.

Definition at line 702 of file JITLink.h.

Friends And Related Function Documentation

◆ LinkGraph

friend class LinkGraph
friend

Definition at line 640 of file JITLink.h.


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