forked from OSchip/llvm-project
parent
edf4bab190
commit
c08758a5b3
|
@ -330,7 +330,7 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
|
|||
|
||||
if (*ArgName == 0 && !DashDashFound) { // Is this the mythical "--"?
|
||||
DashDashFound = true; // Yup, take note of that fact...
|
||||
continue; // Don't try to process it as an argument iself.
|
||||
continue; // Don't try to process it as an argument itself.
|
||||
}
|
||||
|
||||
const char *ArgNameEnd = ArgName;
|
||||
|
|
|
@ -85,7 +85,7 @@ std::string getUniqueFilename(const std::string &FilenameBase) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
// We don't need to hold the temp file descriptor... we will trust that noone
|
||||
// We don't need to hold the temp file descriptor... we will trust that no one
|
||||
// will overwrite/delete the file while we are working on it...
|
||||
close(TempFD);
|
||||
std::string Result(FNBuffer);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//===- Signals.cpp - Signal Handling support ------------------------------===//
|
||||
//
|
||||
// This file defines some helpful functions for dealing with the possibility of
|
||||
// unix signals occuring while your program is running.
|
||||
// Unix signals occuring while your program is running.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ static void RedirectFD(const std::string &File, int FD) {
|
|||
|
||||
/// RunProgramWithTimeout - This function executes the specified program, with
|
||||
/// the specified null-terminated argument array, with the stdin/out/err fd's
|
||||
/// redirected, with a timeout specified on the commandline. This terminates
|
||||
/// redirected, with a timeout specified on the command line. This terminates
|
||||
/// the calling program if there is an error executing the specified program.
|
||||
/// It returns the return value of the program, or -1 if a timeout is detected.
|
||||
///
|
||||
|
|
|
@ -330,7 +330,7 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
|
|||
|
||||
if (*ArgName == 0 && !DashDashFound) { // Is this the mythical "--"?
|
||||
DashDashFound = true; // Yup, take note of that fact...
|
||||
continue; // Don't try to process it as an argument iself.
|
||||
continue; // Don't try to process it as an argument itself.
|
||||
}
|
||||
|
||||
const char *ArgNameEnd = ArgName;
|
||||
|
|
|
@ -85,7 +85,7 @@ std::string getUniqueFilename(const std::string &FilenameBase) {
|
|||
exit(1);
|
||||
}
|
||||
|
||||
// We don't need to hold the temp file descriptor... we will trust that noone
|
||||
// We don't need to hold the temp file descriptor... we will trust that no one
|
||||
// will overwrite/delete the file while we are working on it...
|
||||
close(TempFD);
|
||||
std::string Result(FNBuffer);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//===- Signals.cpp - Signal Handling support ------------------------------===//
|
||||
//
|
||||
// This file defines some helpful functions for dealing with the possibility of
|
||||
// unix signals occuring while your program is running.
|
||||
// Unix signals occuring while your program is running.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ static void RedirectFD(const std::string &File, int FD) {
|
|||
|
||||
/// RunProgramWithTimeout - This function executes the specified program, with
|
||||
/// the specified null-terminated argument array, with the stdin/out/err fd's
|
||||
/// redirected, with a timeout specified on the commandline. This terminates
|
||||
/// redirected, with a timeout specified on the command line. This terminates
|
||||
/// the calling program if there is an error executing the specified program.
|
||||
/// It returns the return value of the program, or -1 if a timeout is detected.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue