[lli] Don't create an ExecutorProcessControl in non-remote MCJIT config.
authorLang Hames <lhames@gmail.com>
Wed, 1 Feb 2023 02:17:09 +0000 (18:17 -0800)
committerLang Hames <lhames@gmail.com>
Wed, 1 Feb 2023 02:25:27 +0000 (18:25 -0800)
commit930d477d5d8f6c9f09daabb84ce6b76f38bf438d
tree2fda336f7c0a9b3a6ef723eb123dc5d7d2c13456
parenta7fbca40805ca414a9dc37b91075e89e6a3b75d5
[lli] Don't create an ExecutorProcessControl in non-remote MCJIT config.

When lli is run with -jit-kind=mcjit and without remote JITing there is no need
to create an ExecutorProcessControl object.

This is nice cleanup, but as a bonus should silence the leak reports that we're
seeing in https://green.lab.llvm.org/green/job/clang-stage2-cmake-RgSan/9105/.
(Though as a side note I believe those reports are spurious. They are being
tracked by rdar://104825696).
llvm/tools/lli/lli.cpp