summaryrefslogtreecommitdiff
path: root/include/llvm/System/Path.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-08 20:05:10 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-08 20:05:10 +0000
commit84c8a9c5923403564eb2f9ca78e1e343112b4a87 (patch)
tree26551fe0405f8d58dcf2f770f655a2e32ed6ef05 /include/llvm/System/Path.h
parent184e67e208e2f54a3a89c262a25e45e819f58a61 (diff)
downloadllvm-84c8a9c5923403564eb2f9ca78e1e343112b4a87.tar.gz
llvm-84c8a9c5923403564eb2f9ca78e1e343112b4a87.tar.bz2
llvm-84c8a9c5923403564eb2f9ca78e1e343112b4a87.tar.xz
Implement the output inserter for PathWithStatus
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35770 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System/Path.h')
-rw-r--r--include/llvm/System/Path.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 69c1b48307..6c9ab94579 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -617,9 +617,12 @@ namespace sys {
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;
+}
}