summaryrefslogtreecommitdiff
path: root/include/Support/SystemUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/Support/SystemUtils.h')
-rw-r--r--include/Support/SystemUtils.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/Support/SystemUtils.h b/include/Support/SystemUtils.h
index 7321cb54fc..4573e27ce0 100644
--- a/include/Support/SystemUtils.h
+++ b/include/Support/SystemUtils.h
@@ -15,12 +15,13 @@
///
bool isExecutableFile(const std::string &ExeFileName);
-// FindExecutable - Find a named executable, giving the argv[0] of bugpoint.
-// This assumes the executable is in the same directory as bugpoint itself.
-// If the executable cannot be found, return an empty string.
-//
+/// FindExecutable - Find a named executable, giving the argv[0] of program
+/// being executed. This allows us to find another LLVM tool if it is built into
+/// the same directory, but that directory is neither the current directory, nor
+/// in the PATH. If the executable cannot be found, return an empty string.
+///
std::string FindExecutable(const std::string &ExeName,
- const std::string &BugPointPath);
+ const std::string &ProgramPath);
/// RunProgramWithTimeout - This function executes the specified program, with
/// the specified null-terminated argument array, with the stdin/out/err fd's