LLVM  8.0.0svn
Public Member Functions | List of all members
llvm::orc::JITSymbolResolverAdapter Class Reference

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

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

Public Member Functions

 JITSymbolResolverAdapter (ExecutionSession &ES, SymbolResolver &R, MaterializationResponsibility *MR)
 
Expected< LookupFlagsResultlookupFlags (const LookupSet &Symbols) override
 Returns the symbol flags for each of the given symbols. More...
 
Expected< LookupResultlookup (const LookupSet &Symbols) override
 Returns the fully resolved address and flags for each of the given symbols. More...
 
- Public Member Functions inherited from llvm::JITSymbolResolver
virtual ~JITSymbolResolver ()=default
 

Additional Inherited Members

- Public Types inherited from llvm::JITSymbolResolver
using LookupSet = std::set< StringRef >
 
using LookupResult = std::map< StringRef, JITEvaluatedSymbol >
 
using LookupFlagsResult = std::map< StringRef, JITSymbolFlags >
 

Detailed Description

Definition at line 89 of file Legacy.h.

Constructor & Destructor Documentation

◆ JITSymbolResolverAdapter()

llvm::orc::JITSymbolResolverAdapter::JITSymbolResolverAdapter ( ExecutionSession ES,
SymbolResolver R,
MaterializationResponsibility MR 
)

Definition at line 17 of file Legacy.cpp.

Member Function Documentation

◆ lookup()

Expected< JITSymbolResolverAdapter::LookupResult > llvm::orc::JITSymbolResolverAdapter::lookup ( const LookupSet Symbols)
overridevirtual

Returns the fully resolved address and flags for each of the given symbols.

This method will return an error if any of the given symbols can not be resolved, or if the resolution process itself triggers an error.

Implements llvm::JITSymbolResolver.

Definition at line 22 of file Legacy.cpp.

References llvm::orc::MaterializationResponsibility::addDependenciesForAll(), llvm::orc::ExecutionSessionBase::getSymbolStringPool(), llvm::orc::SymbolStringPool::intern(), llvm::orc::ExecutionSessionBase::legacyLookup(), llvm::orc::SymbolResolver::lookup(), and Result.

◆ lookupFlags()

Expected< JITSymbolResolverAdapter::LookupFlagsResult > llvm::orc::JITSymbolResolverAdapter::lookupFlags ( const LookupSet Symbols)
overridevirtual

Returns the symbol flags for each of the given symbols.

This method does NOT return an error if any of the given symbols is missing. Instead, that symbol will be left out of the result map.

Implements llvm::JITSymbolResolver.

Definition at line 52 of file Legacy.cpp.

References llvm::orc::ExecutionSessionBase::getSymbolStringPool(), llvm::orc::SymbolStringPool::intern(), llvm::orc::SymbolResolver::lookupFlags(), and Result.


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