Add a raw_ostream operator<< to sys::Path.

llvm-svn: 75790
This commit is contained in:
Dan Gohman 2009-07-15 16:33:33 +00:00
parent f39120571b
commit c1dd25da31
1 changed files with 12 additions and 0 deletions

View File

@ -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) {