summaryrefslogtreecommitdiff
path: root/lib/System/Unix/Path.inc
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-08-11 23:39:47 +0000
committerChris Lattner <sabre@nondot.org>2008-08-11 23:39:47 +0000
commit0eab5e2efa0741b766f71a75626f7598990d5c3d (patch)
treec0cb35ae4326e9944d4f694189c09d7b02214f97 /lib/System/Unix/Path.inc
parentb8cd4d3d4902234f98760fec61f5947a8b7055a4 (diff)
downloadllvm-0eab5e2efa0741b766f71a75626f7598990d5c3d.tar.gz
llvm-0eab5e2efa0741b766f71a75626f7598990d5c3d.tar.bz2
llvm-0eab5e2efa0741b766f71a75626f7598990d5c3d.tar.xz
add a helper method to sys::Path for clang, patch by
Kovarththanan Rajaratnam! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54655 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix/Path.inc')
-rw-r--r--lib/System/Unix/Path.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/System/Unix/Path.inc b/lib/System/Unix/Path.inc
index 73ccbfbbbf..cdb574fc01 100644
--- a/lib/System/Unix/Path.inc
+++ b/lib/System/Unix/Path.inc
@@ -81,6 +81,12 @@ Path::Path(const std::string& p)
Path::Path(const char *StrStart, unsigned StrLen)
: path(StrStart, StrLen) {}
+Path&
+Path::operator=(const std::string &that) {
+ path = that;
+ return *this;
+}
+
bool
Path::isValid() const {
// Check some obvious things