diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-18 22:07:33 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-18 22:07:33 +0000 |
commit | b05c935954863e1095d2348db9301bf3933c3251 (patch) | |
tree | 6644227d4f4f9db126b48d411570e4b40686cdda /include/llvm/System | |
parent | 558e3bc8fe1ff2a093f709d0d3388e341eff1326 (diff) | |
download | external_llvm-b05c935954863e1095d2348db9301bf3933c3251.zip external_llvm-b05c935954863e1095d2348db9301bf3933c3251.tar.gz external_llvm-b05c935954863e1095d2348db9301bf3933c3251.tar.bz2 |
Added "GetCurrentDirectory()" to sys::Path.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45182 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r-- | include/llvm/System/Path.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index 8ae8a00..ee26b82 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -148,6 +148,11 @@ namespace sys { /// constructor must provide the same result as GetRootDirectory. /// @brief Construct a path to the current user's "home" directory static Path GetUserHomeDirectory(); + + /// Construct a path to the current directory for the current process. + /// @returns The current working directory. + /// @brief Returns the current working directory. + static Path GetCurrentDirectory(); /// Return the suffix commonly used on file names that contain a shared /// object, shared archive, or dynamic link library. Such files are |