LLVM API Documentation
#include <Program.h>
Static Public Member Functions | |
Methods | |
static Path | FindProgramByName (const std::string &name) |
Construct a Program by finding it by name. | |
static int | ExecuteAndWait (const Path &path, const std::vector< std::string > &args) |
Executes the program with the given set of arguments . |
This class provides an abstraction for programs that are executable by the operating system. It provides a platform generic way to find executable programs from the path and to execute them. The sys::Path class is used to locate the Program.
Definition at line 29 of file Program.h.
|
Executes the program with the given set of
This function executes the program using the
Definition at line 81 of file Unix/Program.cpp. References llvm::sys::Path::c_str(), environ, llvm::sys::Path::executable(), llvm::sys::Path::get(), llvm::sys::Path::getLast(), index, and ThrowErrno(). |
|
Construct a Program by finding it by name. This static constructor (factory) will attempt to locate a program in the operating system's file system using some pre-determined set of locations to search (e.g. the PATH on Unix).
Definition at line 34 of file Unix/Program.cpp. References llvm::sys::Path::appendFile(), llvm::sys::Path::executable(), llvm::sys::Path::setDirectory(), and llvm::sys::Path::setFile(). |