summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/System/Path.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 05be221275..8b603f5ad4 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -15,6 +15,7 @@
#define LLVM_SYSTEM_PATH_H
#include "llvm/System/TimeValue.h"
+#include "llvm/Support/raw_ostream.h"
#include <set>
#include <string>
#include <vector>
@@ -714,6 +715,17 @@ namespace sys {
extern const char PathSeparator;
}
+inline raw_ostream& operator<<(raw_ostream& strm, const sys::Path& aPath) {
+ strm << aPath.toString();
+ return strm;
+}
+
+inline raw_ostream& operator<<(raw_ostream& strm,
+ const sys::PathWithStatus& aPath) {
+ strm << static_cast<const sys::Path&>(aPath);
+ return strm;
+}
+
std::ostream& operator<<(std::ostream& strm, const sys::Path& aPath);
inline std::ostream& operator<<(std::ostream& strm,
const sys::PathWithStatus& aPath) {