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

Reid Spencer reid at x10sys.com
Fri Dec 17 22:54:32 PST 2004



Changes in directory llvm/tools/llvm-ld:

llvm-ld.cpp updated: 1.14 -> 1.15
---
Log message:

sys::CopyFile returns void and throws an exception on error which will be
caught by llvm-ld's main function.


---
Diffs of the changes:  (+1 -4)

Index: llvm/tools/llvm-ld/llvm-ld.cpp
diff -u llvm/tools/llvm-ld/llvm-ld.cpp:1.14 llvm/tools/llvm-ld/llvm-ld.cpp:1.15
--- llvm/tools/llvm-ld/llvm-ld.cpp:1.14	Fri Dec 17 18:19:32 2004
+++ llvm/tools/llvm-ld/llvm-ld.cpp	Sat Dec 18 00:54:21 2004
@@ -313,10 +313,7 @@
     std::cerr << "Could not find llvm-stub.exe executable!\n";
     exit(1);
   }
-  if (sys::CopyFile(OutputFilename, llvmstub)) {
-    std::cerr << "Could not copy the llvm-stub.exe executable!\n";
-    exit(1);
-  }
+  sys::CopyFile(OutputFilename, llvmstub);
   return;
 #endif
 






More information about the llvm-commits mailing list