summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CompilerDriver/Action.cpp
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2010-11-03 16:14:16 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2010-11-03 16:14:16 +0000
commitb8211b80bc53699674645172f0af82a72dcbdc41 (patch)
treee415a297796797d6b5acff67d96c4d817a2d096c /llvm/lib/CompilerDriver/Action.cpp
parent189c6c687ced08ff933098ea5a005c9b6e345064 (diff)
downloadbcm5719-llvm-b8211b80bc53699674645172f0af82a72dcbdc41.tar.gz
bcm5719-llvm-b8211b80bc53699674645172f0af82a72dcbdc41.zip
Rename FindExecutable to PrependMainExecutablePath.
Makes it more clear that it is just a path manipulation function. llvm-svn: 118174
Diffstat (limited to 'llvm/lib/CompilerDriver/Action.cpp')
-rw-r--r--llvm/lib/CompilerDriver/Action.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CompilerDriver/Action.cpp b/llvm/lib/CompilerDriver/Action.cpp
index 54b55d0d42f..19f5bbaa006 100644
--- a/llvm/lib/CompilerDriver/Action.cpp
+++ b/llvm/lib/CompilerDriver/Action.cpp
@@ -57,7 +57,8 @@ namespace {
sys::Path prog(name);
if (!prog.isAbsolute()) {
- prog = FindExecutable(name, ProgramName, (void *)(intptr_t)&Main);
+ prog = PrependMainExecutablePath(name, ProgramName,
+ (void *)(intptr_t)&Main);
if (!prog.canExecute()) {
prog = sys::Program::FindProgramByName(name);
OpenPOWER on IntegriCloud