summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-08-05 17:32:39 +0000
committerDan Gohman <gohman@apple.com>2009-08-05 17:32:39 +0000
commit4cf97dddea1851cf2bfa8844f06cc417933f26cf (patch)
tree00875864cadb31bc0adab7230a755eaefe23751e /llvm/lib
parentf6e25b30396b2dcabbd2f9fc10c5d0885aa1b22d (diff)
downloadbcm5719-llvm-4cf97dddea1851cf2bfa8844f06cc417933f26cf.tar.gz
bcm5719-llvm-4cf97dddea1851cf2bfa8844f06cc417933f26cf.zip
Update a comment to reflect the current code.
llvm-svn: 78215
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/System/Unix/Program.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc
index a4a769c2b16..14bc7b13770 100644
--- a/llvm/lib/System/Unix/Program.inc
+++ b/llvm/lib/System/Unix/Program.inc
@@ -53,7 +53,8 @@ Program::FindProgramByName(const std::string& progName) {
if (progName.find('/') != std::string::npos)
return temp;
- // At this point, the file name is valid and its not executable
+ // At this point, the file name does not contain slashes. Search for it
+ // through the directories specified in the PATH environment variable.
// Get the path. If its empty, we can't do anything to find it.
const char *PathStr = getenv("PATH");
OpenPOWER on IntegriCloud