LCOV - code coverage report
Current view: top level - include/llvm/ExecutionEngine/Orc - NullResolver.h (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 2 2 100.0 %
Date: 2018-07-13 00:08:38 Functions: 2 4 50.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===------ NullResolver.h - Reject symbol lookup requests ------*- C++ -*-===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : //
      10             : //   Defines a RuntimeDyld::SymbolResolver subclass that rejects all symbol
      11             : // resolution requests, for clients that have no cross-object fixups.
      12             : //
      13             : //===----------------------------------------------------------------------===//
      14             : 
      15             : #ifndef LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H
      16             : #define LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H
      17             : 
      18             : #include "llvm/ExecutionEngine/Orc/Core.h"
      19             : #include "llvm/ExecutionEngine/RuntimeDyld.h"
      20             : 
      21             : namespace llvm {
      22             : namespace orc {
      23             : 
      24          10 : class NullResolver : public SymbolResolver {
      25             : public:
      26             :   SymbolNameSet lookupFlags(SymbolFlagsMap &Flags,
      27             :                             const SymbolNameSet &Symbols) override;
      28             : 
      29             :   SymbolNameSet lookup(std::shared_ptr<AsynchronousSymbolQuery> Query,
      30             :                        SymbolNameSet Symbols) override;
      31             : };
      32             : 
      33             : /// SymbolResolver impliementation that rejects all resolution requests.
      34             : /// Useful for clients that have no cross-object fixups.
      35          16 : class NullLegacyResolver : public LegacyJITSymbolResolver {
      36             : public:
      37             :   JITSymbol findSymbol(const std::string &Name) final;
      38             : 
      39             :   JITSymbol findSymbolInLogicalDylib(const std::string &Name) final;
      40             : };
      41             : 
      42             : } // End namespace orc.
      43             : } // End namespace llvm.
      44             : 
      45             : #endif // LLVM_EXECUTIONENGINE_ORC_NULLRESOLVER_H

Generated by: LCOV version 1.13