aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-04-29 17:40:50 +0000
committerChris Lattner <sabre@nondot.org>2007-04-29 17:40:50 +0000
commit97289054814a2a4e3dc13d494fb5d1d82ab46c75 (patch)
treeefe866cd664e1bec56ebd6822df974bc2d100283
parent930c0fead9ad8cb91322c02fdead15cdd8dcbe0d (diff)
add missing ctor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36562 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/System/Path.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index a595efbfed..8ab0bb7aee 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -177,8 +177,6 @@ namespace sys {
/// This constructor will accept a character range as a path. No checking
/// is done on this path to determine if it is valid. To determine
/// validity of the path, use the isValid method.
- /// @param p The path to assign.
- /// @brief Construct a Path from a string.
explicit Path(const char *StrStart, unsigned StrLen)
: path(StrStart, StrStart+StrLen) {}
@@ -551,6 +549,12 @@ namespace sys {
PathWithStatus(const Path &other)
: Path(other), status(), fsIsValid(false) {}
+ /// This constructor will accept a character range as a path. No checking
+ /// is done on this path to determine if it is valid. To determine
+ /// validity of the path, use the isValid method.
+ PathWithStatus(const char *StrStart, unsigned StrLen)
+ : Path(StrStart, StrLen), fsIsValid(false) {}
+
/// This constructor will accept a std::string as a path. No checking is
/// done on this path to determine if it is valid. To determine validity
/// of the path, use the isValid method.