llvm-project/llvm/tools/lli
Lang Hames ece8fed609 [ORC] Add a runAsMain utility function to ExecutionUtils.
The runAsMain function takes a pointer to a function with a standard C main
signature, int(*)(int, char*[]), and invokes it using the given arguments and
program name. The arguments are copied into writable temporary storage as
required by the C and C++ specifications, so runAsMain safe to use when calling
main functions that modify their arguments in-place.

This patch also uses the new runAsMain function to replace hand-rolled versions
in lli, llvm-jitlink, and the SpeculativeJIT example.
2019-12-02 01:52:52 -08:00
..
ChildTarget [lli-child-target] Fix -DBUILD_SHARED_LIBS=on build 2019-10-29 22:46:13 -07:00
CMakeLists.txt [lli] Fix -DBUILD_SHARED_LIBS=on build 2019-10-29 22:41:35 -07:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RemoteJITUtils.h Break out OrcError and RPC 2019-10-29 17:31:28 -07:00
lli.cpp [ORC] Add a runAsMain utility function to ExecutionUtils. 2019-12-02 01:52:52 -08:00