diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-05-11 17:37:40 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-05-11 17:37:40 +0000 |
commit | fff116fd58783879812198abdda2fc33d4bc1cac (patch) | |
tree | c98a8355080e18bcc45f48f0c75192f07c2608fd /include/llvm/System | |
parent | 64d69102a115fff25d01662e62389da4fa56fa30 (diff) | |
download | external_llvm-fff116fd58783879812198abdda2fc33d4bc1cac.zip external_llvm-fff116fd58783879812198abdda2fc33d4bc1cac.tar.gz external_llvm-fff116fd58783879812198abdda2fc33d4bc1cac.tar.bz2 |
Make constructors target-specific. This fixes problems where the path would
include backslashes on Windows. This should fix llvm-ld problems on win32.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Path.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 37c42aa..ba251a9 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -180,7 +180,7 @@ namespace sys { /// of the path, use the isValid method. /// @param p The path to assign. /// @brief Construct a Path from a string. - explicit Path(const std::string& p) : path(p) {} + explicit Path(const std::string& p); /// 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 @@ -188,8 +188,7 @@ namespace sys { /// @param StrStart A pointer to the first character of the path name /// @param StrLen The length of the path name at StrStart /// @brief Construct a Path from a string. - explicit Path(const char *StrStart, unsigned StrLen) - : path(StrStart, StrStart+StrLen) {} + Path(const char *StrStart, unsigned StrLen); /// @} /// @name Operators |