aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Path.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-07-07 18:11:32 +0000
committerChris Lattner <sabre@nondot.org>2006-07-07 18:11:32 +0000
commitc67dc457ceb543f00d2d67e857c1d6f25371378a (patch)
tree6cb208c69e5dc2c927b7a5c3dc41a8a2060eb7fd /lib/System/Path.cpp
parentff74ac103d0943837c5ec90dd1f827902c699a7f (diff)
downloadexternal_llvm-c67dc457ceb543f00d2d67e857c1d6f25371378a.zip
external_llvm-c67dc457ceb543f00d2d67e857c1d6f25371378a.tar.gz
external_llvm-c67dc457ceb543f00d2d67e857c1d6f25371378a.tar.bz2
Move << method out of line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Path.cpp')
-rw-r--r--lib/System/Path.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/System/Path.cpp b/lib/System/Path.cpp
index 9ee0a3e..efadfa9 100644
--- a/lib/System/Path.cpp
+++ b/lib/System/Path.cpp
@@ -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 @@ using namespace sys;
//=== 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 @@ Path::FindLibrary(std::string& name) {
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
-