diff options
author | Devang Patel <dpatel@apple.com> | 2006-10-09 21:16:05 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-10-09 21:16:05 +0000 |
commit | dc4c38279f6bf3b001515e6723e7b6d79ed378b0 (patch) | |
tree | 49f061de2f972a137388965ce7aa3493f4879f20 /tools/lto | |
parent | d3eea90a9b650a03330c361914c0deb0a0410431 (diff) | |
download | external_llvm-dc4c38279f6bf3b001515e6723e7b6d79ed378b0.zip external_llvm-dc4c38279f6bf3b001515e6723e7b6d79ed378b0.tar.gz external_llvm-dc4c38279f6bf3b001515e6723e7b6d79ed378b0.tar.bz2 |
Use FindProgramByName instead of FindExecutable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index a64130d..c4face2 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -386,7 +386,7 @@ LTO::optimizeModules(const std::string &OutputFilename, // We can't just assemble and link the file with the system assembler // and linker because we don't know where to put the _start symbol. // GCC mysteriously knows how to do it. - const sys::Path gcc = FindExecutable("gcc", "/"); + const sys::Path gcc = sys::Program::FindProgramByName("gcc"); if (gcc.isEmpty()) { tmpAsmFilePath.eraseFromDisk(); TempDir.eraseFromDisk(true); |