summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix/Program.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-05 22:15:36 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-05 22:15:36 +0000
commit0c6a283b2ab8f921e30686984ccfa89c07296d3e (patch)
tree069e034ed48d654007c6d8a0287c653cbf7daa37 /llvm/lib/System/Unix/Program.cpp
parented3f95892de3b192e52059361463db208bc1b218 (diff)
downloadbcm5719-llvm-0c6a283b2ab8f921e30686984ccfa89c07296d3e.tar.gz
bcm5719-llvm-0c6a283b2ab8f921e30686984ccfa89c07296d3e.zip
Stop propagating method names that violate the coding standard
llvm-svn: 17498
Diffstat (limited to 'llvm/lib/System/Unix/Program.cpp')
-rw-r--r--llvm/lib/System/Unix/Program.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/System/Unix/Program.cpp b/llvm/lib/System/Unix/Program.cpp
index 27f39dfd54d..18fcafeb4ea 100644
--- a/llvm/lib/System/Unix/Program.cpp
+++ b/llvm/lib/System/Unix/Program.cpp
@@ -37,7 +37,7 @@ Program::FindProgramByName(const std::string& progName) {
if (progName.length() == 0) // no program
return Path();
Path temp;
- if (!temp.set_file(progName)) // invalid name
+ if (!temp.setFile(progName)) // invalid name
return Path();
if (temp.executable()) // already executable as is
return temp;
@@ -57,8 +57,8 @@ Program::FindProgramByName(const std::string& progName) {
// Check to see if this first directory contains the executable...
Path FilePath;
- if (FilePath.set_directory(std::string(PathStr,Colon))) {
- FilePath.append_file(progName);
+ if (FilePath.setDirectory(std::string(PathStr,Colon))) {
+ FilePath.appendFile(progName);
if (FilePath.executable())
return FilePath; // Found the executable!
}
OpenPOWER on IntegriCloud