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/Win32/Path.inc | |
| 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/Win32/Path.inc')
| -rw-r--r-- | llvm/lib/System/Win32/Path.inc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/System/Win32/Path.inc b/llvm/lib/System/Win32/Path.inc index bb1252cfdd2..ff96e33dfad 100644 --- a/llvm/lib/System/Win32/Path.inc +++ b/llvm/lib/System/Win32/Path.inc @@ -56,6 +56,13 @@ Path::Path(const char *StrStart, unsigned StrLen) FlipBackSlashes(path); } +Path& +Path::operator=(const std::string &that) { + path = that; + FlipBackSlashes(path); + return *this; +} + bool Path::isValid() const { if (path.empty()) |

