[PATCH] D44902: [ORC][C-API] Fix orc on platforms without indirection support.

Andres Freund via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 26 11:17:58 PDT 2018


anarazel created this revision.
Herald added subscribers: llvm-commits, kristof.beyls.
anarazel added reviewers: lhames, dblaikie.

Previously this crashed because a nullptr (returned by
createLocalIndirectStubsManagerBuilder() on platforms without
indirection support) functor was unconditionally invoked.

Fix the tests so JIT and indirection support are treated as separate
capabilities. This should add coverage of basic ORC C-API JIT on a lot
of platforms, and also adds coverage for lazy JIT on AArch64. AArch64
was added in r310938, but the tests separate architecture filter
wasn't adjusted.

https://bugs.llvm.org/show_bug.cgi?id=36896


Repository:
  rL LLVM

https://reviews.llvm.org/D44902

Files:
  lib/ExecutionEngine/Orc/IndirectionUtils.cpp
  unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
  unittests/ExecutionEngine/Orc/OrcTestCommon.h
  unittests/ExecutionEngine/Orc/RTDyldObjectLinkingLayerTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44902.139822.patch
Type: text/x-patch
Size: 3663 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180326/5b490ec7/attachment.bin>


More information about the llvm-commits mailing list