diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-03 16:14:16 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-11-03 16:14:16 +0000 |
commit | b8211b80bc53699674645172f0af82a72dcbdc41 (patch) | |
tree | e415a297796797d6b5acff67d96c4d817a2d096c /llvm/tools/llvm-ld/llvm-ld.cpp | |
parent | 189c6c687ced08ff933098ea5a005c9b6e345064 (diff) | |
download | bcm5719-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/tools/llvm-ld/llvm-ld.cpp')
-rw-r--r-- | llvm/tools/llvm-ld/llvm-ld.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp index a28592bd979..9bf1081c7f1 100644 --- a/llvm/tools/llvm-ld/llvm-ld.cpp +++ b/llvm/tools/llvm-ld/llvm-ld.cpp @@ -415,8 +415,8 @@ static void EmitShellScript(char **argv, Module *M) { // support windows systems, we copy the llvm-stub.exe executable from the // build tree to the destination file. std::string ErrMsg; - sys::Path llvmstub = FindExecutable("llvm-stub.exe", argv[0], - (void *)(intptr_t)&Optimize); + sys::Path llvmstub = PrependMainExecutablePath("llvm-stub", argv[0], + (void *)(intptr_t)&Optimize); if (llvmstub.isEmpty()) PrintAndExit("Could not find llvm-stub.exe executable!", M); @@ -664,8 +664,8 @@ int main(int argc, char **argv, char **envp) { sys::RemoveFileOnSignal(AssemblyFile); // Determine the locations of the llc and gcc programs. - sys::Path llc = FindExecutable("llc", argv[0], - (void *)(intptr_t)&Optimize); + sys::Path llc = PrependMainExecutablePath("llc", argv[0], + (void *)(intptr_t)&Optimize); if (llc.isEmpty()) PrintAndExit("Failed to find llc", Composite.get()); @@ -691,8 +691,8 @@ int main(int argc, char **argv, char **envp) { sys::RemoveFileOnSignal(CFile); // Determine the locations of the llc and gcc programs. - sys::Path llc = FindExecutable("llc", argv[0], - (void *)(intptr_t)&Optimize); + sys::Path llc = PrependMainExecutablePath("llc", argv[0], + (void *)(intptr_t)&Optimize); if (llc.isEmpty()) PrintAndExit("Failed to find llc", Composite.get()); |