ΒΆtemplate <typename SymbolIdentifierFunction>
DefineExternalSectionStartAndEndSymbols<
    SymbolIdentifierFunction>
createDefineExternalSectionStartAndEndSymbolsPass(
    SymbolIdentifierFunction&& F)

Description

Returns a JITLink pass (as a function class) that uses the given symbol identification function to identify external section start and end symbols (and their associated Section*s) and transform the identified externals into defined symbols pointing to the start of the first block in the section and the end of the last (start and end symbols for empty sections will be transformed into absolute symbols at address 0). The identification function should be callable as SectionRangeSymbolDesc (LinkGraph &G , Symbol &Sym ) If Sym is not a section range start or end symbol then a default constructed SectionRangeSymbolDesc should be returned. If Sym is a start symbol then SectionRangeSymbolDesc(Sec, true), where Sec is a reference to the target Section. If Sym is an end symbol then SectionRangeSymbolDesc(Sec, false) should be returned. This pass should be run in the PostAllocationPass pipeline, at which point all blocks should have been assigned their final addresses.

Declared at: llvm/lib/ExecutionEngine/JITLink/DefineExternalSectionStartAndEndSymbols.h:105

Templates

SymbolIdentifierFunction

Parameters

SymbolIdentifierFunction&& F