diff options
author | Chris Lattner <sabre@nondot.org> | 2008-08-11 23:39:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-08-11 23:39:47 +0000 |
commit | b56e07e73689ee9edd918d01918640539382dab8 (patch) | |
tree | e1f427b4d203e2e575476fc71be9ecbcbb720933 /llvm/lib/System/Unix | |
parent | 52f026058260893a505186cd18c31c8ad5257680 (diff) | |
download | bcm5719-llvm-b56e07e73689ee9edd918d01918640539382dab8.tar.gz bcm5719-llvm-b56e07e73689ee9edd918d01918640539382dab8.zip |
add a helper method to sys::Path for clang, patch by
Kovarththanan Rajaratnam!
llvm-svn: 54655
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r-- | llvm/lib/System/Unix/Path.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc index 73ccbfbbbf6..cdb574fc01a 100644 --- a/llvm/lib/System/Unix/Path.inc +++ b/llvm/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 |