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