summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit0230a5eead535ee3960455ba17a750766bbba7e4 (patch)
treedd535718ef1d03749180983fdd4124b7088dfd32 /llvm/lib/System/Unix
parentccd99b9b612cf601d3e8a2df968f6a22abdfdb1c (diff)
downloadbcm5719-llvm-0230a5eead535ee3960455ba17a750766bbba7e4.tar.gz
bcm5719-llvm-0230a5eead535ee3960455ba17a750766bbba7e4.zip
* Add a std::ostream inserter for sys::Path
* Correct the std::string constructor to take a const reference. llvm-svn: 18877
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/Path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Path.cpp b/llvm/lib/System/Unix/Path.cpp
index 63184f6c1c5..e655ef40cdf 100644
--- a/llvm/lib/System/Unix/Path.cpp
+++ b/llvm/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())
OpenPOWER on IntegriCloud