[llvm-commits] CVS: llvm/lib/System/Path.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Jul 7 11:11:45 PDT 2006
Changes in directory llvm/lib/System:
Path.cpp updated: 1.19 -> 1.20
---
Log message:
Move << method out of line.
---
Diffs of the changes: (+8 -8)
Path.cpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
Index: llvm/lib/System/Path.cpp
diff -u llvm/lib/System/Path.cpp:1.19 llvm/lib/System/Path.cpp:1.20
--- llvm/lib/System/Path.cpp:1.19 Thu Jul 7 18:21:43 2005
+++ llvm/lib/System/Path.cpp Fri Jul 7 13:11:32 2006
@@ -14,8 +14,8 @@
#include "llvm/System/Path.h"
#include "llvm/Config/config.h"
#include <cassert>
-
-namespace llvm {
+#include <ostream>
+using namespace llvm;
using namespace sys;
//===----------------------------------------------------------------------===//
@@ -23,6 +23,11 @@
//=== independent code.
//===----------------------------------------------------------------------===//
+std::ostream& llvm::operator<<(std::ostream &strm, const sys::Path &aPath) {
+ strm << aPath.toString();
+ return strm;
+}
+
Path
Path::GetLLVMConfigDir() {
Path result;
@@ -91,19 +96,14 @@
return sys::Path();
}
-std::string
-Path::GetDLLSuffix() {
+std::string Path::GetDLLSuffix() {
return LTDL_SHLIB_EXT;
}
-}
-
// Include the truly platform-specific parts of this class.
-
#if defined(LLVM_ON_UNIX)
#include "Unix/Path.inc"
#endif
#if defined(LLVM_ON_WIN32)
#include "Win32/Path.inc"
#endif
-
More information about the llvm-commits
mailing list