1//===---------- NullResolver.cpp - Reject symbol lookup requests ----------===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8
9#include "llvm/ExecutionEngine/Orc/NullResolver.h"
10
11#include "llvm/Support/ErrorHandling.h"
12
13namespace llvm {
14namespace orc {
15
16SymbolNameSet NullResolver::getResponsibilitySet(const SymbolNameSet &Symbols) {
17  return Symbols;
18}
19
20SymbolNameSet
21NullResolver::lookup(std::shared_ptr<AsynchronousSymbolQuery> Query,
22                     SymbolNameSet Symbols) {
23  assert(Symbols.empty() && "Null resolver: Symbols must be empty");
24  return Symbols;
25}
26
27JITSymbol NullLegacyResolver::findSymbol(const std::string &Name) {
28  llvm_unreachable("Unexpected cross-object symbol reference");
29}
30
31JITSymbol
32NullLegacyResolver::findSymbolInLogicalDylib(const std::string &Name) {
33  llvm_unreachable("Unexpected cross-object symbol reference");
34}
35
36} // End namespace orc.
37} // End namespace llvm.
38