[llvm-commits] CVS: llvm/include/llvm/System/Path.h

Reid Spencer reid at x10sys.com
Sun Apr 8 13:05:27 PDT 2007



Changes in directory llvm/include/llvm/System:

Path.h updated: 1.50 -> 1.51
---
Log message:

Implement the output inserter for PathWithStatus


---
Diffs of the changes:  (+5 -2)

 Path.h |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/System/Path.h
diff -u llvm/include/llvm/System/Path.h:1.50 llvm/include/llvm/System/Path.h:1.51
--- llvm/include/llvm/System/Path.h:1.50	Sat Apr  7 13:52:17 2007
+++ llvm/include/llvm/System/Path.h	Sun Apr  8 15:05:10 2007
@@ -617,9 +617,12 @@
   bool CopyFile(const Path& Dest, const Path& Src, std::string* ErrMsg);
 }
 
-
 std::ostream& operator<<(std::ostream& strm, const sys::Path& aPath);
-std::ostream& operator<<(std::ostream& strm, const sys::PathWithStatus& aPath);
+inline std::ostream& operator<<(std::ostream& strm, 
+                                const sys::PathWithStatus& aPath) {
+  strm << static_cast<const sys::Path&>(aPath);
+  return strm;
+}
 
 }
 






More information about the llvm-commits mailing list