aboutsummaryrefslogtreecommitdiffstats
path: root/lib/System/Unix
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-05-11 17:37:40 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-05-11 17:37:40 +0000
commit4fd4b46573002a462473787b1ea92d3a272c0129 (patch)
treec98a8355080e18bcc45f48f0c75192f07c2608fd /lib/System/Unix
parentd55d2da842e1a5e212d399e26a35aefcc895b9d0 (diff)
downloadexternal_llvm-4fd4b46573002a462473787b1ea92d3a272c0129.zip
external_llvm-4fd4b46573002a462473787b1ea92d3a272c0129.tar.gz
external_llvm-4fd4b46573002a462473787b1ea92d3a272c0129.tar.bz2
Make constructors target-specific. This fixes problems where the path would
include backslashes on Windows. This should fix llvm-ld problems on win32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/Unix')
-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 9f4b591..6035a14 100644
--- a/lib/System/Unix/Path.inc
+++ b/lib/System/Unix/Path.inc
@@ -75,6 +75,12 @@ using namespace sys;
extern const char sys::PathSeparator = ':';
+Path::Path(const std::string& p)
+ : path(p) {}
+
+Path::Path(const char *StrStart, unsigned StrLen)
+ : path(StrStart, StrLen) {}
+
bool
Path::isValid() const {
// Check some obvious things