diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-07-07 18:11:32 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-07-07 18:11:32 +0000 |
| commit | 9d9cd793a988b936314f10b6e25312431b2f47f3 (patch) | |
| tree | 638234e7037aced08790d4a45d66241c5f2e0f4c /llvm/lib/System | |
| parent | c4f7bfa0812136149e76581a79820f585d3ff2cd (diff) | |
| download | bcm5719-llvm-9d9cd793a988b936314f10b6e25312431b2f47f3.tar.gz bcm5719-llvm-9d9cd793a988b936314f10b6e25312431b2f47f3.zip | |
Move << method out of line.
llvm-svn: 29062
Diffstat (limited to 'llvm/lib/System')
| -rw-r--r-- | llvm/lib/System/Path.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/System/Path.cpp b/llvm/lib/System/Path.cpp index 9ee0a3e8527..efadfa9adf2 100644 --- a/llvm/lib/System/Path.cpp +++ b/llvm/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 - |

