forked from OSchip/llvm-project
[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:
parent
0bc1959f51
commit
5949bd9125
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue