From b05c935954863e1095d2348db9301bf3933c3251 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 18 Dec 2007 22:07:33 +0000 Subject: Added "GetCurrentDirectory()" to sys::Path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45182 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/System/Path.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/llvm/System') 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 -- cgit v1.1