summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2019-12-02 01:45:49 -0800
committerLang Hames <lhames@gmail.com>2019-12-02 01:52:52 -0800
commitece8fed609061638bc867ecb74e179cb86426d60 (patch)
tree50eea950e0965b32d2bdb961456c88c580f81c2d /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py
parent0e7ecc651a47f818abafdfe5f928923f789fe0bc (diff)
downloadbcm5719-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/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud