diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2004-12-22 13:50:17 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2004-12-22 13:50:17 +0000 |
| commit | d94c5f8cc964850b291a167cc686bf2142c1ef34 (patch) | |
| tree | 774822533ab9e19cedae6a15cfb8c606bf8cecb5 | |
| parent | 3b21e3539a7484a188f54fe40e3144ba23b1cff8 (diff) | |
| download | bcm5719-llvm-d94c5f8cc964850b291a167cc686bf2142c1ef34.tar.gz bcm5719-llvm-d94c5f8cc964850b291a167cc686bf2142c1ef34.zip | |
Correct compilation for Cygwin. FindExecutable now returns a sys::Path.
llvm-svn: 19109
| -rw-r--r-- | llvm/tools/llvm-ld/llvm-ld.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp index ebc9e25cf3e..b944383db55 100644 --- a/llvm/tools/llvm-ld/llvm-ld.cpp +++ b/llvm/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 |

