summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Program.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/Program.h')
-rw-r--r--include/llvm/Support/Program.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h
index 727864df2721e..055f016d82436 100644
--- a/include/llvm/Support/Program.h
+++ b/include/llvm/Support/Program.h
@@ -44,6 +44,8 @@ struct ProcessInfo {
#error "ProcessInfo is not defined for this platform!"
#endif
+ enum : ProcessId { InvalidPid = 0 };
+
/// The process identifier.
ProcessId Pid;
@@ -88,7 +90,7 @@ struct ProcessInfo {
/// -2 indicates a crash during execution or timeout
int ExecuteAndWait(
StringRef Program, ///< Path of the program to be executed. It is
- /// presumed this is the result of the findProgramByName method.
+ ///< presumed this is the result of the findProgramByName method.
const char **args, ///< A vector of strings that are passed to the
///< program. The first element should be the name of the program.
///< The list *must* be terminated by a null char* entry.