llvm.org GIT mirror llvm / a527bf1
new method for creating a path, which does not create a temporary string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36552 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 8 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
173173 /// @brief Construct a Path from a string.
174174 explicit Path(const std::string& p) : path(p) {}
175175
176 /// This constructor will accept a character range as a path. No checking
177 /// is done on this path to determine if it is valid. To determine
178 /// validity of the path, use the isValid method.
179 /// @param p The path to assign.
180 /// @brief Construct a Path from a string.
181 explicit Path(const char *StrStart, unsigned StrLen)
182 : path(StrStart, StrStart+StrLen) {}
183
176184 /// @}
177185 /// @name Operators
178186 /// @{