aboutsummaryrefslogtreecommitdiff
path: root/tools/llvm-ld/llvm-ld.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 23:44:23 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 23:44:23 +0000
commit93f8f55e19c29e1889dc72eb62292c383e76d3a0 (patch)
tree93b5aa3b9a00b96297618c1e0f86c6073d592f54 /tools/llvm-ld/llvm-ld.cpp
parent51ab8ec66ed8259d842490055659027a58a77910 (diff)
For PR351:
Adjust to interface change for FindExecutable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld/llvm-ld.cpp')
-rw-r--r--tools/llvm-ld/llvm-ld.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp
index ae64d57484..b4e22f0f66 100644
--- a/tools/llvm-ld/llvm-ld.cpp
+++ b/tools/llvm-ld/llvm-ld.cpp
@@ -481,11 +481,11 @@ int main(int argc, char **argv, char **envp) {
sys::RemoveFileOnSignal(sys::Path(OutputFilename));
// Determine the locations of the llc and gcc programs.
- std::string llc = FindExecutable("llc", argv[0]);
- std::string gcc = FindExecutable("gcc", argv[0]);
+ std::string llc = FindExecutable("llc", argv[0]).toString();
if (llc.empty())
return PrintAndReturn("Failed to find llc");
+ std::string gcc = FindExecutable("gcc", argv[0]).toString();
if (gcc.empty())
return PrintAndReturn("Failed to find gcc");
@@ -506,10 +506,11 @@ int main(int argc, char **argv, char **envp) {
sys::RemoveFileOnSignal(sys::Path(OutputFilename));
// Determine the locations of the llc and gcc programs.
- std::string llc = FindExecutable("llc", argv[0]);
- std::string gcc = FindExecutable("gcc", argv[0]);
+ std::string llc = FindExecutable("llc", argv[0]).toString();
if (llc.empty())
return PrintAndReturn("Failed to find llc");
+
+ std::string gcc = FindExecutable("gcc", argv[0]).toString();
if (gcc.empty())
return PrintAndReturn("Failed to find gcc");