summaryrefslogtreecommitdiff
path: root/tools/llvm-ld/llvm-ld.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-22 13:50:17 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-22 13:50:17 +0000
commit8d8b41d3f1bf708b3a2212806cfd749d83403277 (patch)
tree120baf2c75b80c65cbd89013d90b4360e9884e8e /tools/llvm-ld/llvm-ld.cpp
parent302d81e819d90a7057613490c70f3f4534674ef1 (diff)
downloadllvm-8d8b41d3f1bf708b3a2212806cfd749d83403277.tar.gz
llvm-8d8b41d3f1bf708b3a2212806cfd749d83403277.tar.bz2
llvm-8d8b41d3f1bf708b3a2212806cfd749d83403277.tar.xz
Correct compilation for Cygwin. FindExecutable now returns a sys::Path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld/llvm-ld.cpp')
-rw-r--r--tools/llvm-ld/llvm-ld.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp
index ebc9e25cf3..b944383db5 100644
--- a/tools/llvm-ld/llvm-ld.cpp
+++ b/tools/llvm-ld/llvm-ld.cpp
@@ -310,12 +310,12 @@ static void EmitShellScript(char **argv) {
// Windows doesn't support #!/bin/sh style shell scripts in .exe files. To
// support windows systems, we copy the llvm-stub.exe executable from the
// build tree to the destination file.
- std::string llvmstub = FindExecutable("llvm-stub.exe", argv[0]);
- if (llvmstub.empty()) {
+ sys::Path llvmstub = FindExecutable("llvm-stub.exe", argv[0]);
+ if (llvmstub.isEmpty()) {
std::cerr << "Could not find llvm-stub.exe executable!\n";
exit(1);
}
- sys::CopyFile(sys::Path(OutputFilename), sys::Path(llvmstub));
+ sys::CopyFile(sys::Path(OutputFilename), llvmstub);
return;
#endif