1 //===------ NullResolver.h - Reject symbol lookup requests ------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // Defines a RuntimeDyld::SymbolResolver subclass that rejects all symbol
10 // resolution requests, for clients that have no cross-object fixups.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H
15 #define LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H
17 #include "llvm/ExecutionEngine/Orc/Legacy.h"
18 #include "llvm/ExecutionEngine/RuntimeDyld.h"
23 class NullResolver
: public SymbolResolver
{
25 SymbolNameSet
getResponsibilitySet(const SymbolNameSet
&Symbols
) final
;
27 SymbolNameSet
lookup(std::shared_ptr
<AsynchronousSymbolQuery
> Query
,
28 SymbolNameSet Symbols
) final
;
31 /// SymbolResolver impliementation that rejects all resolution requests.
32 /// Useful for clients that have no cross-object fixups.
33 class NullLegacyResolver
: public LegacyJITSymbolResolver
{
35 JITSymbol
findSymbol(const std::string
&Name
) final
;
37 JITSymbol
findSymbolInLogicalDylib(const std::string
&Name
) final
;
40 } // End namespace orc.
41 } // End namespace llvm.
43 #endif // LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H