LLVM  10.0.0svn
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"

Inheritance diagram for llvm::orc::ReexportsGenerator:
Inheritance graph
[legend]
Collaboration diagram for llvm::orc::ReexportsGenerator:
Collaboration graph
[legend]

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...
 
Expected< SymbolNameSettryToGenerate (JITDylib &JD, const SymbolNameSet &Names) override
 
- Public Member Functions inherited from llvm::orc::JITDylib::DefinitionGenerator
virtual ~DefinitionGenerator ()
 

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 993 of file Core.h.

Member Typedef Documentation

◆ SymbolPredicate

Definition at line 995 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 705 of file Core.cpp.

Member Function Documentation

◆ tryToGenerate()

Expected< SymbolNameSet > llvm::orc::ReexportsGenerator::tryToGenerate ( JITDylib JD,
const SymbolNameSet Names 
)
overridevirtual

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