LLVM API Documentation

Classes | Namespaces | Enumerations | Functions | Variables
Program.h File Reference
#include "llvm/ADT/ArrayRef.h"
#include "llvm/Support/Path.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.

Classes

struct  llvm::sys::ProcessInfo
 This struct encapsulates information about a process. More...

Namespaces

namespace  llvm
 

List of target independent CodeGen pass IDs.


namespace  llvm::sys

Enumerations

enum  llvm::sys::WindowsEncodingMethod { llvm::sys::WEM_UTF8, llvm::sys::WEM_CurrentCodePage, llvm::sys::WEM_UTF16 }

Functions

std::string llvm::sys::FindProgramByName (const std::string &name)
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, const StringRef **redirects=nullptr, unsigned secondsToWait=0, unsigned memoryLimit=0, std::string *ErrMsg=nullptr, bool *ExecutionFailed=nullptr)
ProcessInfo llvm::sys::ExecuteNoWait (StringRef Program, const char **args, const char **env=nullptr, const StringRef **redirects=nullptr, unsigned memoryLimit=0, std::string *ErrMsg=nullptr, bool *ExecutionFailed=nullptr)
bool llvm::sys::argumentsFitWithinSystemLimits (ArrayRef< const char * > Args)
std::error_code llvm::sys::writeFileWithEncoding (StringRef FileName, StringRef Contents, WindowsEncodingMethod Encoding=WEM_UTF8)
ProcessInfo llvm::sys::Wait (const ProcessInfo &PI, unsigned SecondsToWait, bool WaitUntilTerminates, std::string *ErrMsg=nullptr)

Variables

const char llvm::sys::EnvPathSeparator = ':'
 This is the OS-specific separator for PATH like environment variables: