Skip to content

Commit 5949bd9

Browse files
[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.
1 parent 0bc1959 commit 5949bd9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/ExecutionEngine/Orc/LazyReexports.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ createLocalLazyCallThroughManager(const Triple &T, ExecutionSession &ES,
107107
JITTargetAddress ErrorHandlerAddr) {
108108
switch (T.getArch()) {
109109
default:
110-
return make_error<StringError>(
111-
std::string("No callback manager available for ") + T.str(),
112-
inconvertibleErrorCode());
110+
return LocalLazyCallThroughManager::Create<OrcGenericABI>(ES,
111+
ErrorHandlerAddr);
113112

114113
case Triple::aarch64:
115114
case Triple::aarch64_32:

0 commit comments

Comments
 (0)