diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-08 20:05:10 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-08 20:05:10 +0000 |
commit | 0d95160c6dca5220e292500ca9510c961b846b5f (patch) | |
tree | 61c452632dc0b7b0eb59053388bb5b8d7e6dcd45 | |
parent | f20eacbc78c204acb547d17352f4d7d49d59ce63 (diff) | |
download | bcm5719-llvm-0d95160c6dca5220e292500ca9510c961b846b5f.tar.gz bcm5719-llvm-0d95160c6dca5220e292500ca9510c961b846b5f.zip |
Implement the output inserter for PathWithStatus
llvm-svn: 35770
-rw-r--r-- | llvm/include/llvm/System/Path.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/include/llvm/System/Path.h b/llvm/include/llvm/System/Path.h index 69c1b483070..6c9ab94579c 100644 --- a/llvm/include/llvm/System/Path.h +++ b/llvm/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; +} } |