1 //===------ NullResolver.h - Reject symbol lookup requests ------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Defines a RuntimeDyld::SymbolResolver subclass that rejects all symbol
11 // resolution requests, for clients that have no cross-object fixups.
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H
16 #define LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H
18 #include "llvm/ExecutionEngine/RuntimeDyld.h"
23 /// SymbolResolver impliementation that rejects all resolution requests.
24 /// Useful for clients that have no cross-object fixups.
25 class NullResolver : public JITSymbolResolver {
27 JITSymbol findSymbol(const std::string &Name) final;
29 JITSymbol findSymbolInLogicalDylib(const std::string &Name) final;
32 } // End namespace orc.
33 } // End namespace llvm.
35 #endif // LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H