[llvm-commits] CVS: llvm/tools/gccld/gccld.cpp
Anton Korobeynikov
asl at math.spbu.ru
Fri Sep 1 13:35:33 PDT 2006
Changes in directory llvm/tools/gccld:
gccld.cpp updated: 1.110 -> 1.111
---
Log message:
- Fixed broken Win32 build
- Removed warning about clobbered parameter in Bytecode/Reader
---
Diffs of the changes: (+10 -5)
gccld.cpp | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
Index: llvm/tools/gccld/gccld.cpp
diff -u llvm/tools/gccld/gccld.cpp:1.110 llvm/tools/gccld/gccld.cpp:1.111
--- llvm/tools/gccld/gccld.cpp:1.110 Tue Aug 22 18:27:22 2006
+++ llvm/tools/gccld/gccld.cpp Fri Sep 1 15:35:17 2006
@@ -133,17 +133,22 @@
/// EmitShellScript - Output the wrapper file that invokes the JIT on the LLVM
/// bytecode file for the program.
static void EmitShellScript(char **argv) {
-#if defined(_WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32) || defined(__CYGWIN__)
// 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]).toString();
- if (llvmstub.empty()) {
+ 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), sys::Path(llvmstub));
- return;
+ if (0 != sys::CopyFile(sys::Path(OutputFilename), llvmstub, &ErrMsg)) {
+ std::cerr << argv[0] << ": " << ErrMsg << "\n";
+ exit(1);
+ }
+
+ return;
#endif
// Output the script to start the program...
More information about the llvm-commits
mailing list