LLVM: llvm::jitlink::MachOLinkGraphBuilder Class Reference (original) (raw)
#include "[ExecutionEngine/JITLink/MachOLinkGraphBuilder.h](MachOLinkGraphBuilder%5F8h%5Fsource.html)"
| Protected Member Functions | |
|---|---|
| MachOLinkGraphBuilder (const object::MachOObjectFile &Obj, std::shared_ptr< orc::SymbolStringPool > SSP, Triple TT, SubtargetFeatures Features, LinkGraph::GetEdgeKindNameFunction GetEdgeKindName) | |
| LinkGraph & | getGraph () const |
| const object::MachOObjectFile & | getObject () const |
| void | addCustomSectionParser (StringRef SectionName, SectionParserFunction Parse) |
| virtual Error | addRelocations ()=0 |
| template<typename... ArgTs> | |
| NormalizedSymbol & | createNormalizedSymbol (ArgTs &&... Args) |
| Create a symbol. | |
| NormalizedSection & | getSectionByIndex (unsigned Index) |
| Index is zero-based (MachO section indexes are usually one-based) and assumed to be in-range. | |
| Expected< NormalizedSection & > | findSectionByIndex (unsigned Index) |
| Try to get the section at the given index. | |
| Expected< NormalizedSymbol & > | findSymbolByIndex (uint64_t Index) |
| Try to get the symbol at the given index. | |
| Symbol * | getSymbolByAddress (NormalizedSection &NSec, orc::ExecutorAddr Address) |
| Returns the symbol with the highest address not greater than the search address, or null if no such symbol exists. | |
| Expected< Symbol & > | findSymbolByAddress (NormalizedSection &NSec, orc::ExecutorAddr Address) |
| Returns the symbol with the highest address not greater than the search address, or an error if no such symbol exists. | |
| MachO::relocation_info | getRelocationInfo (const object::relocation_iterator RelItr) |
| Static Protected Member Functions | |
|---|---|
| static Linkage | getLinkage (uint16_t Desc) |
| static Scope | getScope (StringRef Name, uint8_t Type) |
| static bool | isAltEntry (const NormalizedSymbol &NSym) |
| static bool | isDebugSection (const NormalizedSection &NSec) |
| static bool | isZeroFillSection (const NormalizedSection &NSec) |
Definition at line 27 of file MachOLinkGraphBuilder.h.
◆ SectionParserFunction
| llvm::jitlink::MachOLinkGraphBuilder::~MachOLinkGraphBuilder ( ) | virtualdefault |
|---|
◆ MachOLinkGraphBuilder()
◆ addCustomSectionParser()
| void llvm::jitlink::MachOLinkGraphBuilder::addCustomSectionParser ( StringRef SectionName, SectionParserFunction Parse ) | protected |
|---|
◆ addRelocations()
| virtual Error llvm::jitlink::MachOLinkGraphBuilder::addRelocations ( ) | protectedpure virtual |
|---|
◆ buildGraph()
| Expected< std::unique_ptr< LinkGraph > > llvm::jitlink::MachOLinkGraphBuilder::buildGraph | ( | ) |
|---|
◆ createNormalizedSymbol()
template<typename... ArgTs>
| NormalizedSymbol & llvm::jitlink::MachOLinkGraphBuilder::createNormalizedSymbol ( ArgTs &&... Args) | inlineprotected |
|---|
◆ findSectionByIndex()
◆ findSymbolByAddress()
◆ findSymbolByIndex()
◆ getGraph()
| LinkGraph & llvm::jitlink::MachOLinkGraphBuilder::getGraph ( ) const | inlineprotected |
|---|
◆ getLinkage()
| Linkage llvm::jitlink::MachOLinkGraphBuilder::getLinkage ( uint16_t Desc) | staticprotected |
|---|
◆ getObject()
◆ getRelocationInfo()
Definition at line 167 of file MachOLinkGraphBuilder.h.
References getObject(), llvm::object::RelocationRef::getRawDataRefImpl(), llvm::object::MachOObjectFile::getRelocation(), llvm::MachO::relocation_info::r_address, llvm::MachO::relocation_info::r_extern, llvm::MachO::relocation_info::r_length, llvm::MachO::relocation_info::r_pcrel, llvm::MachO::relocation_info::r_symbolnum, llvm::MachO::relocation_info::r_type, llvm::MachO::any_relocation_info::r_word0, and llvm::MachO::any_relocation_info::r_word1.
◆ getScope()
◆ getSectionByIndex()
Index is zero-based (MachO section indexes are usually one-based) and assumed to be in-range.
Client is responsible for checking.
Definition at line 108 of file MachOLinkGraphBuilder.h.
◆ getSymbolByAddress()
◆ isAltEntry()
◆ isDebugSection()
◆ isZeroFillSection()
The documentation for this class was generated from the following files:
- lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
- lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp