summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2007-04-29 14:43:31 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2007-04-29 14:43:31 +0000
commit930c0fead9ad8cb91322c02fdead15cdd8dcbe0d (patch)
tree2caec735675258cd0da0ea9b9557c50bcd2248f6 /include
parent1d6bf2f5806032b4628c33b472363e15dcaefd2e (diff)
downloadllvm-930c0fead9ad8cb91322c02fdead15cdd8dcbe0d.tar.gz
llvm-930c0fead9ad8cb91322c02fdead15cdd8dcbe0d.tar.bz2
llvm-930c0fead9ad8cb91322c02fdead15cdd8dcbe0d.tar.xz
Fix MemoryBuffer breakage correctly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36561 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/System/Path.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index 573edda15c..a595efbfed 100644
--- a/include/llvm/System/Path.h
+++ b/include/llvm/System/Path.h
@@ -559,6 +559,14 @@ namespace sys {
explicit PathWithStatus(const std::string& p)
: Path(p), 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.
+ /// @param p The path to assign.
+ /// @brief Construct a Path from a string.
+ explicit PathWithStatus(const char *StrStart, unsigned StrLen)
+ : Path(StrStart, StrLen), status(), fsIsValid(false) {}
+
/// Makes a copy of \p that to \p this.
/// @returns \p this
/// @brief Assignment Operator