LLVM  8.0.1
Public Types | Public Member Functions | List of all members
llvm::orc::ReexportsGenerator Class Reference

ReexportsGenerator can be used with JITDylib::setGenerator to automatically re-export a subset of the source JITDylib's symbols in the target. More...

#include "llvm/ExecutionEngine/Orc/Core.h"

Public Types

using SymbolPredicate = std::function< bool(SymbolStringPtr)>
 

Public Member Functions

 ReexportsGenerator (JITDylib &SourceJD, bool MatchNonExported=false, SymbolPredicate Allow=SymbolPredicate())
 Create a reexports generator. More...
 
SymbolNameSet operator() (JITDylib &JD, const SymbolNameSet &Names)
 

Detailed Description

ReexportsGenerator can be used with JITDylib::setGenerator to automatically re-export a subset of the source JITDylib's symbols in the target.

Definition at line 412 of file Core.h.

Member Typedef Documentation

◆ SymbolPredicate

Definition at line 414 of file Core.h.

Constructor & Destructor Documentation

◆ ReexportsGenerator()

llvm::orc::ReexportsGenerator::ReexportsGenerator ( JITDylib SourceJD,
bool  MatchNonExported = false,
SymbolPredicate  Allow = SymbolPredicate() 
)

Create a reexports generator.

If an Allow predicate is passed, only symbols for which the predicate returns true will be reexported. If no Allow predicate is passed, all symbols will be exported.

Definition at line 706 of file Core.cpp.

Member Function Documentation

◆ operator()()

SymbolNameSet llvm::orc::ReexportsGenerator::operator() ( JITDylib JD,
const SymbolNameSet Names 
)

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