mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Add a raw_ostream operator<< to sys::Path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75790 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
#define LLVM_SYSTEM_PATH_H
|
#define LLVM_SYSTEM_PATH_H
|
||||||
|
|
||||||
#include "llvm/System/TimeValue.h"
|
#include "llvm/System/TimeValue.h"
|
||||||
|
#include "llvm/Support/raw_ostream.h"
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@@ -714,6 +715,17 @@ namespace sys {
|
|||||||
extern const char PathSeparator;
|
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);
|
std::ostream& operator<<(std::ostream& strm, const sys::Path& aPath);
|
||||||
inline std::ostream& operator<<(std::ostream& strm,
|
inline std::ostream& operator<<(std::ostream& strm,
|
||||||
const sys::PathWithStatus& aPath) {
|
const sys::PathWithStatus& aPath) {
|
||||||
|
Reference in New Issue
Block a user