df1d9e8518d5115d5605fa97a3b8ced936d046b0
[oota-llvm.git] / include / llvm / ExecutionEngine / Orc / NullResolver.h
1 //===------ NullResolver.h - Reject symbol lookup requests ------*- C++ -*-===//\r
2 //\r
3 //                     The LLVM Compiler Infrastructure\r
4 //\r
5 // This file is distributed under the University of Illinois Open Source\r
6 // License. See LICENSE.TXT for details.\r
7 //\r
8 //===----------------------------------------------------------------------===//\r
9 //\r
10 //   Defines a RuntimeDyld::SymbolResolver subclass that rejects all symbol\r
11 // resolution requests, for clients that have no cross-object fixups.\r
12 //\r
13 //===----------------------------------------------------------------------===//\r
14 \r
15 #ifndef LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H\r
16 #define LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H\r
17 \r
18 #include "llvm/ExecutionEngine/RuntimeDyld.h"\r
19 \r
20 namespace llvm {\r
21 namespace orc {\r
22 \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
26 public:\r
27   RuntimeDyld::SymbolInfo findSymbol(const std::string &Name) final;\r
28 \r
29   RuntimeDyld::SymbolInfo\r
30   findSymbolInLogicalDylib(const std::string &Name) final;\r
31 };\r
32 \r
33 } // End namespace orc.\r
34 } // End namespace llvm.\r
35 \r
36 #endif // LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H\r