diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2006-09-01 20:35:17 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2006-09-01 20:35:17 +0000 |
commit | 6c6a70f999aa150ed614edd1e02a1405c717f3f4 (patch) | |
tree | 16b8782356625ca91f5852af3ebf0e5e0082fc81 /llvm/tools/llvm-ld/llvm-ld.cpp | |
parent | 88c268b621ebeac49db1cde9304adf334a787a75 (diff) | |
download | bcm5719-llvm-6c6a70f999aa150ed614edd1e02a1405c717f3f4.tar.gz bcm5719-llvm-6c6a70f999aa150ed614edd1e02a1405c717f3f4.zip |
- Fixed broken Win32 build
- Removed warning about clobbered parameter in Bytecode/Reader
llvm-svn: 30026
Diffstat (limited to 'llvm/tools/llvm-ld/llvm-ld.cpp')
-rw-r--r-- | llvm/tools/llvm-ld/llvm-ld.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp index 6b9adaff5a4..ab7109fb855 100644 --- a/llvm/tools/llvm-ld/llvm-ld.cpp +++ b/llvm/tools/llvm-ld/llvm-ld.cpp @@ -345,12 +345,18 @@ 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 ErrMsg; 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), llvmstub); + + if (0 != sys::CopyFile(sys::Path(OutputFilename), llvmstub, &ErrMsg)) { + std::cerr << argv[0] << ": " << ErrMsg << "\n"; + exit(1); + } + return; #endif |