Changes in directory llvm/tools/llvm-ld:
llvm-ld.cpp updated: 1.37 -> 1.38 --- Log message: - Fixed broken Win32 build - Removed warning about clobbered parameter in Bytecode/Reader --- Diffs of the changes: (+7 -1) llvm-ld.cpp | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletion(-) Index: llvm/tools/llvm-ld/llvm-ld.cpp diff -u llvm/tools/llvm-ld/llvm-ld.cpp:1.37 llvm/tools/llvm-ld/llvm-ld.cpp:1.38 --- llvm/tools/llvm-ld/llvm-ld.cpp:1.37 Wed Aug 23 02:30:48 2006 +++ llvm/tools/llvm-ld/llvm-ld.cpp Fri Sep 1 15:35:17 2006 @@ -345,12 +345,18 @@ // 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 _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits