LLVM  6.0.0svn
Classes | Namespaces | Enumerations | Functions
Program.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/ErrorOr.h"
#include <system_error>
Include dependency graph for Program.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  llvm::sys::ProcessInfo
 This is the OS-specific separator for PATH like environment variables: More...


 Compute iterated dominance frontiers using a linear time algorithm.


enum  llvm::sys::WindowsEncodingMethod { llvm::sys::WEM_UTF8, llvm::sys::WEM_CurrentCodePage, llvm::sys::WEM_UTF16 }
 File encoding options when writing contents that a non-UTF8 tool will read (on Windows systems). More...


ErrorOr< std::string > llvm::sys::findProgramByName (StringRef Name, ArrayRef< StringRef > Paths={})
 Find the first executable file Name in Paths. More...
std::error_code llvm::sys::ChangeStdinToBinary ()
std::error_code llvm::sys::ChangeStdoutToBinary ()
int llvm::sys::ExecuteAndWait (StringRef Program, const char **Args, const char **Env=nullptr, ArrayRef< Optional< StringRef >> Redirects={}, unsigned SecondsToWait=0, unsigned MemoryLimit=0, std::string *ErrMsg=nullptr, bool *ExecutionFailed=nullptr)
 This function executes the program using the arguments provided. More...
ProcessInfo llvm::sys::ExecuteNoWait (StringRef Program, const char **Args, const char **Env=nullptr, ArrayRef< Optional< StringRef >> Redirects={}, unsigned MemoryLimit=0, std::string *ErrMsg=nullptr, bool *ExecutionFailed=nullptr)
 Similar to ExecuteAndWait, but returns immediately. More...
bool llvm::sys::commandLineFitsWithinSystemLimits (StringRef Program, ArrayRef< const char *> Args)
 Return true if the given arguments fit within system-specific argument length limits. More...
std::error_code llvm::sys::writeFileWithEncoding (StringRef FileName, StringRef Contents, WindowsEncodingMethod Encoding=WEM_UTF8)
 Saves the UTF8-encoded contents string into the file FileName using a specific encoding. More...
ProcessInfo llvm::sys::Wait (const ProcessInfo &PI, unsigned SecondsToWait, bool WaitUntilTerminates, std::string *ErrMsg=nullptr)
 This function waits for the process specified by PI to finish. More...