[llvm-commits] CVS: llvm/include/llvm/System/Path.h

Jeff Cohen jeffc at jolt-lang.org
Sun Apr 29 07:44:02 PDT 2007



Changes in directory llvm/include/llvm/System:

Path.h updated: 1.53 -> 1.54
---
Log message:

Fix MemoryBuffer breakage correctly.

---
Diffs of the changes:  (+8 -0)

 Path.h |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm/include/llvm/System/Path.h
diff -u llvm/include/llvm/System/Path.h:1.53 llvm/include/llvm/System/Path.h:1.54
--- llvm/include/llvm/System/Path.h:1.53	Sun Apr 29 01:16:32 2007
+++ llvm/include/llvm/System/Path.h	Sun Apr 29 09:43:30 2007
@@ -559,6 +559,14 @@
       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






More information about the llvm-commits mailing list