[llvm-commits] CVS: llvm/tools/llvm-ld/llvm-ld.cpp

Anton Korobeynikov asl at math.spbu.ru
Fri Sep 1 13:35:36 PDT 2006



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
 






More information about the llvm-commits mailing list