LLVM 20.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::MemLifetime | getMemLifetime () const |
Get the memory lifetime policy for this section. | |
void | setMemLifetime (orc::MemLifetime ML) |
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 163 of file JITLink.cpp.
|
delete |
|
inline |
Returns an iterator over the blocks defined in this section.
Definition at line 749 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 754 of file JITLink.h.
References Blocks, and llvm::make_range().
|
inline |
|
inline |
|
inline |
|
inline |
Returns the protection flags for this section.
Definition at line 731 of file JITLink.h.
Referenced by llvm::jitlink::shouldRelax().
|
inline |
Returns the name of this section.
Definition at line 728 of file JITLink.h.
References Name.
Referenced by llvm::jitlink::makeTargetOutOfRangeError(), llvm::jitlink::LinkGraph::removeSection(), llvm::jitlink::aarch32::StubsManager_prev7::visitEdge(), and llvm::jitlink::aarch32::StubsManager_v7::visitEdge().
|
inline |
Returns the ordinal for this section.
Definition at line 743 of file JITLink.h.
Referenced by getMethodBatch().
|
inline |
|
inline |
|
inline |
Returns an iterator over the symbols defined in this section.
Definition at line 762 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 767 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 772 of file JITLink.h.
References llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::size().