summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-14 21:41:33 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-14 21:41:33 +0000
commit9e89fe77ce532e1d2704f55159d5474b35645685 (patch)
tree10c34879e5a5b635997f4522ae28ffe95c94208e /include
parenta553bede23578dbf5233a28b1e67183d0911096c (diff)
downloadllvm-9e89fe77ce532e1d2704f55159d5474b35645685.tar.gz
llvm-9e89fe77ce532e1d2704f55159d5474b35645685.tar.bz2
llvm-9e89fe77ce532e1d2704f55159d5474b35645685.tar.xz
Add GetCurrentDirectory back.
It looks like clang-tools-extra/unittests/cpp11-migrate/TransformTest.cpp depends on the behaviour of the old one on Windows. Maybe a difference between GetCurrentDirectoryA and GetCurrentDirectoryW? git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184009 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/PathV1.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h
index d3f82bb567..eaf2550869 100644
--- a/include/llvm/Support/PathV1.h
+++ b/include/llvm/Support/PathV1.h
@@ -102,6 +102,11 @@ namespace sys {
/// directory.
static Path GetTemporaryDirectory(std::string* ErrMsg = 0);
+ /// 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 an
/// executable.
/// @returns The executable file suffix for the current platform.