//===--- TargetExecutionUtils.cpp - Execution utils for target processes --===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "llvm/ExecutionEngine/Orc/TargetProcess/TargetExecutionUtils.h" #include <vector> namespace llvm { namespace orc { int runAsMain(int (*Main)(int, char *[]), ArrayRef<std::string> Args, std::optional<StringRef> ProgramName) { … } int runAsVoidFunction(int (*Func)(void)) { … } int runAsIntFunction(int (*Func)(int), int Arg) { … } } // End namespace orc. } // End namespace llvm.