aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 06:57:15 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 06:57:15 +0000
commit732f92d56ebca7229bea69fdec6b5609f135ff76 (patch)
tree8a3c6662ab0ab2911ce485df198e4c4658fb2e70 /lib/System/Unix
parent3265369ff528e09a71cc8f1ce20f28f65d8e2bcc (diff)
downloadexternal_llvm-732f92d56ebca7229bea69fdec6b5609f135ff76.zip
external_llvm-732f92d56ebca7229bea69fdec6b5609f135ff76.tar.gz
external_llvm-732f92d56ebca7229bea69fdec6b5609f135ff76.tar.bz2
* Add a std::ostream inserter for sys::Path
* Correct the std::string constructor to take a const reference. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-rw-r--r--lib/System/Unix/Path.cpp2
-rw-r--r--lib/System/Unix/Path.inc2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/System/Unix/Path.cpp b/lib/System/Unix/Path.cpp
index 63184f6..e655ef4 100644
--- a/lib/System/Unix/Path.cpp
+++ b/lib/System/Unix/Path.cpp
@@ -27,7 +27,7 @@
namespace llvm {
using namespace sys;
-Path::Path(std::string unverified_path)
+Path::Path(const std::string& unverified_path)
: path(unverified_path)
{
if (unverified_path.empty())
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index 63184f6..e655ef4 100644
--- a/lib/System/Unix/Path.inc
+++ b/lib/System/Unix/Path.inc
@@ -27,7 +27,7 @@
namespace llvm {
using namespace sys;
-Path::Path(std::string unverified_path)
+Path::Path(const std::string& unverified_path)
: path(unverified_path)
{
if (unverified_path.empty())