mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 12:33:33 +02:00
2134d2b597
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. |
||
---|---|---|
.. | ||
JITLink | ||
Orc | ||
ExecutionEngine.h | ||
GenericValue.h | ||
Interpreter.h | ||
JITEventListener.h | ||
JITSymbol.h | ||
MCJIT.h | ||
ObjectCache.h | ||
OProfileWrapper.h | ||
OrcMCJITReplacement.h | ||
OrcV1Deprecation.h | ||
RTDyldMemoryManager.h | ||
RuntimeDyld.h | ||
RuntimeDyldChecker.h | ||
SectionMemoryManager.h |