From b8211b80bc53699674645172f0af82a72dcbdc41 Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov Date: Wed, 3 Nov 2010 16:14:16 +0000 Subject: Rename FindExecutable to PrependMainExecutablePath. Makes it more clear that it is just a path manipulation function. llvm-svn: 118174 --- llvm/lib/CompilerDriver/Action.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'llvm/lib/CompilerDriver/Action.cpp') 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); -- cgit v1.2.3