summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitc38c1712f79f5ac5806812d4ebb1fb592a12ad7e (patch)
tree236f971a631d80d4b98e97fe1769b817ff1d6863 /llvm/lib/System/Unix
parenta38e72d247506d97578e87bd6e0e228b09dd2d24 (diff)
downloadbcm5719-llvm-c38c1712f79f5ac5806812d4ebb1fb592a12ad7e.tar.gz
bcm5719-llvm-c38c1712f79f5ac5806812d4ebb1fb592a12ad7e.zip
Make constructors target-specific. This fixes problems where the path would
include backslashes on Windows. This should fix llvm-ld problems on win32. llvm-svn: 50960
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/Path.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/Path.inc b/llvm/lib/System/Unix/Path.inc
index 9f4b5914ce0..6035a14d27a 100644
--- a/llvm/lib/System/Unix/Path.inc
+++ b/llvm/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
OpenPOWER on IntegriCloud