Skip to content

Commit

Permalink
[Orc] Allow OrcGenericABI variant of LazyCallThroughManager
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
weliveindetail committed Mar 23, 2021
1 parent 0bc1959 commit 5949bd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp
Expand Up @@ -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:
Expand Down

0 comments on commit 5949bd9

Please sign in to comment.