LLVM
8.0.1
|
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) |
ReexportsGenerator can be used with JITDylib::setGenerator to automatically re-export a subset of the source JITDylib's symbols in the target.
llvm::orc::ReexportsGenerator::ReexportsGenerator | ( | JITDylib & | SourceJD, |
bool | MatchNonExported = false , |
||
SymbolPredicate | Allow = SymbolPredicate() |
||
) |
SymbolNameSet llvm::orc::ReexportsGenerator::operator() | ( | JITDylib & | JD, |
const SymbolNameSet & | Names | ||
) |
Definition at line 712 of file Core.cpp.
References assert(), llvm::cantFail(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::count(), llvm::orc::JITDylib::define(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::empty(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::end(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::erase(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::find(), I, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), llvm::DenseMapBase< DerivedT, KeyT, ValueT, KeyInfoT, BucketT >::insert(), llvm::JITSymbolFlags::Lazy, llvm::orc::JITDylib::lookupFlags(), llvm::JITSymbolFlags::Materializing, MI, Name, llvm::orc::reexports(), SI, llvm::JITSymbolFlags::stripTransientFlags(), llvm::Error::success(), and llvm::JITSymbolFlags::Weak.