2015-06-23 05:37:34 +08:00
|
|
|
//===---------- NullResolver.cpp - Reject symbol lookup requests ----------===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-06-23 05:37:34 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/ExecutionEngine/Orc/NullResolver.h"
|
|
|
|
|
|
|
|
#include "llvm/Support/ErrorHandling.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
namespace orc {
|
|
|
|
|
2018-08-29 05:18:05 +08:00
|
|
|
SymbolNameSet NullResolver::getResponsibilitySet(const SymbolNameSet &Symbols) {
|
|
|
|
return Symbols;
|
2018-02-07 05:25:11 +08:00
|
|
|
}
|
|
|
|
|
2018-02-15 06:12:56 +08:00
|
|
|
SymbolNameSet
|
|
|
|
NullResolver::lookup(std::shared_ptr<AsynchronousSymbolQuery> Query,
|
|
|
|
SymbolNameSet Symbols) {
|
2018-02-07 05:25:11 +08:00
|
|
|
assert(Symbols.empty() && "Null resolver: Symbols must be empty");
|
|
|
|
return Symbols;
|
|
|
|
}
|
|
|
|
|
2018-02-04 00:52:48 +08:00
|
|
|
JITSymbol NullLegacyResolver::findSymbol(const std::string &Name) {
|
2015-06-23 05:37:34 +08:00
|
|
|
llvm_unreachable("Unexpected cross-object symbol reference");
|
|
|
|
}
|
|
|
|
|
2018-02-04 00:52:48 +08:00
|
|
|
JITSymbol
|
|
|
|
NullLegacyResolver::findSymbolInLogicalDylib(const std::string &Name) {
|
2015-06-23 05:37:34 +08:00
|
|
|
llvm_unreachable("Unexpected cross-object symbol reference");
|
|
|
|
}
|
|
|
|
|
|
|
|
} // End namespace orc.
|
|
|
|
} // End namespace llvm.
|