LLVM 17.0.0git
|
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 | |
Section & | operator= (const Section &)=delete |
Section (Section &&)=delete | |
Section & | operator= (Section &&)=delete |
StringRef | getName () const |
Returns the name of this section. | |
orc::MemProt | getMemProt () const |
Returns the protection flags for this section. | |
void | setMemProt (orc::MemProt Prot) |
Set the protection flags for this section. | |
orc::MemLifetimePolicy | getMemLifetimePolicy () const |
Get the memory lifetime policy for this section. | |
void | setMemLifetimePolicy (orc::MemLifetimePolicy MLP) |
Set the memory lifetime policy for this section. | |
SectionOrdinal | getOrdinal () const |
Returns the ordinal for this section. | |
bool | empty () const |
Returns true if this section is empty (contains no blocks or symbols). | |
iterator_range< block_iterator > | blocks () |
Returns an iterator over the blocks defined in this section. | |
iterator_range< const_block_iterator > | blocks () const |
Returns an iterator over the blocks defined in this section. | |
BlockSet::size_type | blocks_size () const |
Returns the number of blocks in this section. | |
iterator_range< symbol_iterator > | symbols () |
Returns an iterator over the symbols defined in this section. | |
iterator_range< const_symbol_iterator > | symbols () const |
Returns an iterator over the symbols defined in this section. | |
SymbolSet::size_type | symbols_size () const |
Return the number of symbols in this section. | |
Friends | |
class | LinkGraph |
llvm::jitlink::Section::~Section | ( | ) |
Definition at line 158 of file JITLink.cpp.
|
delete |
|
inline |
Returns an iterator over the blocks defined in this section.
Definition at line 737 of file JITLink.h.
References Blocks, and llvm::make_range().
Referenced by llvm::jitlink::LinkGraph::mergeSections(), llvm::jitlink::DWARFRecordSectionSplitter::operator()(), and llvm::jitlink::SectionRange::SectionRange().
|
inline |
Returns an iterator over the blocks defined in this section.
Definition at line 742 of file JITLink.h.
References Blocks, and llvm::make_range().
|
inline |
|
inline |
|
inline |
|
inline |
Returns the protection flags for this section.
Definition at line 719 of file JITLink.h.
Referenced by llvm::jitlink::shouldRelax().
|
inline |
Returns the name of this section.
Definition at line 716 of file JITLink.h.
References Name.
Referenced by llvm::jitlink::makeTargetOutOfRangeError(), and llvm::jitlink::LinkGraph::removeSection().
|
inline |
|
inline |
|
inline |
|
inline |
Returns an iterator over the symbols defined in this section.
Definition at line 750 of file JITLink.h.
References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::begin(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::end(), and llvm::make_range().
Referenced by llvm::jitlink::makeTargetOutOfRangeError(), and llvm::jitlink::DWARFRecordSectionSplitter::operator()().
|
inline |
Returns an iterator over the symbols defined in this section.
Definition at line 755 of file JITLink.h.
References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::begin(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::end(), and llvm::make_range().
|
inline |
Return the number of symbols in this section.
Definition at line 760 of file JITLink.h.
References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::size().