[llvm-commits] CVS: llvm/tools/lto/lto.cpp
Devang Patel
dpatel at apple.com
Mon Oct 9 14:16:20 PDT 2006
Changes in directory llvm/tools/lto:
lto.cpp updated: 1.19 -> 1.20
---
Log message:
Use FindProgramByName instead of FindExecutable.
---
Diffs of the changes: (+1 -1)
lto.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/tools/lto/lto.cpp
diff -u llvm/tools/lto/lto.cpp:1.19 llvm/tools/lto/lto.cpp:1.20
--- llvm/tools/lto/lto.cpp:1.19 Mon Oct 9 15:20:13 2006
+++ llvm/tools/lto/lto.cpp Mon Oct 9 16:16:05 2006
@@ -386,7 +386,7 @@
// 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);
More information about the llvm-commits
mailing list