[Orc] Allow OrcGenericABI variant of LazyCallThroughManager

Apply the way createLocalIndirectStubsManagerBuilder() deals with unsupported achritectures to createLocalLazyCallThroughManager(). The returned call-through manager is dysfunctional: It runs into an unreachable as soon as a lazy JIT attempts to use it. However, this results in broader platform support for lli in default (greedy) ORC mode where no lazy materialization is required.
This commit is contained in:
Stefan Gränitz 2021-03-23 13:50:20 +01:00
parent 0bc1959f51
commit 5949bd9125
1 changed files with 2 additions and 3 deletions

View File

@ -107,9 +107,8 @@ createLocalLazyCallThroughManager(const Triple &T, ExecutionSession &ES,
JITTargetAddress ErrorHandlerAddr) {
switch (T.getArch()) {
default:
return make_error<StringError>(
std::string("No callback manager available for ") + T.str(),
inconvertibleErrorCode());
return LocalLazyCallThroughManager::Create<OrcGenericABI>(ES,
ErrorHandlerAddr);
case Triple::aarch64:
case Triple::aarch64_32: