diff options
author | Lang Hames <lhames@gmail.com> | 2019-12-02 01:45:49 -0800 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2019-12-02 01:52:52 -0800 |
commit | ece8fed609061638bc867ecb74e179cb86426d60 (patch) | |
tree | 50eea950e0965b32d2bdb961456c88c580f81c2d /lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp | |
parent | 0e7ecc651a47f818abafdfe5f928923f789fe0bc (diff) | |
download | bcm5719-llvm-ece8fed609061638bc867ecb74e179cb86426d60.tar.gz bcm5719-llvm-ece8fed609061638bc867ecb74e179cb86426d60.zip |
[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.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/thread/main2.cpp')
0 files changed, 0 insertions, 0 deletions