Home
last modified time | relevance | path

Searched refs:ArgVStorage (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/
DTargetExecutionUtils.cpp18 std::vector<std::unique_ptr<char[]>> ArgVStorage; in runAsMain() local
21 ArgVStorage.reserve(Args.size() + (ProgramName ? 1 : 0)); in runAsMain()
25 ArgVStorage.push_back(std::make_unique<char[]>(ProgramName->size() + 1)); in runAsMain()
26 llvm::copy(*ProgramName, &ArgVStorage.back()[0]); in runAsMain()
27 ArgVStorage.back()[ProgramName->size()] = '\0'; in runAsMain()
28 ArgV.push_back(ArgVStorage.back().get()); in runAsMain()
32 ArgVStorage.push_back(std::make_unique<char[]>(Arg.size() + 1)); in runAsMain()
33 llvm::copy(Arg, &ArgVStorage.back()[0]); in runAsMain()
34 ArgVStorage.back()[Arg.size()] = '\0'; in runAsMain()
35 ArgV.push_back(ArgVStorage.back().get()); in runAsMain()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/
DExecutionUtils.cpp24 std::vector<std::unique_ptr<char[]>> ArgVStorage; in runAsMain() local
27 ArgVStorage.reserve(Args.size() + (ProgramName ? 1 : 0)); in runAsMain()
31 ArgVStorage.push_back(std::make_unique<char[]>(ProgramName->size() + 1)); in runAsMain()
32 llvm::copy(*ProgramName, &ArgVStorage.back()[0]); in runAsMain()
33 ArgVStorage.back()[ProgramName->size()] = '\0'; in runAsMain()
34 ArgV.push_back(ArgVStorage.back().get()); in runAsMain()
38 ArgVStorage.push_back(std::make_unique<char[]>(Arg.size() + 1)); in runAsMain()
39 llvm::copy(Arg, &ArgVStorage.back()[0]); in runAsMain()
40 ArgVStorage.back()[Arg.size()] = '\0'; in runAsMain()
41 ArgV.push_back(ArgVStorage.back().get()); in runAsMain()