[llvm-commits] CVS: llvm/lib/System/Win32/Win32.h

Reid Spencer reid at x10sys.com
Mon Nov 15 09:22:07 PST 2004



Changes in directory llvm/lib/System/Win32:

Win32.h updated: 1.1 -> 1.2
---
Log message:

Provide the ThrowErrno utility.
Patch contributed by Morten Ofstad


---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/System/Win32/Win32.h
diff -u llvm/lib/System/Win32/Win32.h:1.1 llvm/lib/System/Win32/Win32.h:1.2
--- llvm/lib/System/Win32/Win32.h:1.1	Wed Sep 15 00:48:11 2004
+++ llvm/lib/System/Win32/Win32.h	Mon Nov 15 11:21:57 2004
@@ -31,3 +31,6 @@
   throw s;
 }
 
+inline void ThrowErrno(const std::string& prefix) {
+    ThrowError(prefix + ": " + strerror(errno));
+}






More information about the llvm-commits mailing list