1 //===---------- NullResolver.cpp - Reject symbol lookup requests ----------===//
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
7 //===----------------------------------------------------------------------===//
9 #include "llvm/ExecutionEngine/Orc/NullResolver.h"
11 #include "llvm/Support/ErrorHandling.h"
16 SymbolNameSet
NullResolver::getResponsibilitySet(const SymbolNameSet
&Symbols
) {
21 NullResolver::lookup(std::shared_ptr
<AsynchronousSymbolQuery
> Query
,
22 SymbolNameSet Symbols
) {
23 assert(Symbols
.empty() && "Null resolver: Symbols must be empty");
27 JITSymbol
NullLegacyResolver::findSymbol(const std::string
&Name
) {
28 llvm_unreachable("Unexpected cross-object symbol reference");
32 NullLegacyResolver::findSymbolInLogicalDylib(const std::string
&Name
) {
33 llvm_unreachable("Unexpected cross-object symbol reference");
36 } // End namespace orc.
37 } // End namespace llvm.