mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Remove FindProgramByName. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221258 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
3f4bf44b1c
commit
5dac5bd225
4 files changed
+5
-100
No files matched your search
@@ -52,18 +52,6 @@ struct ProcessInfo {
|
||||
ProcessInfo();
|
||||
};
|
||||
|
||||
/// This function attempts 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). Paths with slashes are returned unmodified.
|
||||
///
|
||||
/// It does not perform hashing as a shell would but instead stats each PATH
|
||||
/// entry individually so should generally be avoided. Core LLVM library
|
||||
/// functions and options should instead require fully specified paths.
|
||||
///
|
||||
/// @returns A string containing the path of the program or an empty string if
|
||||
/// the program could not be found.
|
||||
std::string FindProgramByName(const std::string& name);
|
||||
|
||||
/// \brief Find the first executable file \p Name in \p Paths.
|
||||
///
|
||||
/// This does not perform hashing as a shell would but instead stats each PATH
|
||||
@@ -100,7 +88,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.
|
||||
|
||||
Reference in new issue
Block a user