summaryrefslogtreecommitdiff
path: root/lib/Support/Unix
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-14 20:26:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-14 20:26:58 +0000
commit76858a7abd4faeb462e04f177666b87b23b65287 (patch)
treecb6b21d86d87da6f8f3daf8633f12d367720ef2f /lib/Support/Unix
parent89dbe9744255864445b1c9f9a613ae333d3f79c8 (diff)
downloadllvm-76858a7abd4faeb462e04f177666b87b23b65287.tar.gz
llvm-76858a7abd4faeb462e04f177666b87b23b65287.tar.bz2
llvm-76858a7abd4faeb462e04f177666b87b23b65287.tar.xz
Replace use of PathV1.h in MCContext.cpp.
GetCurrentDirectory is now unused. Remove it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184003 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix')
-rw-r--r--lib/Support/Unix/Path.inc11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index 57f02be109..06b18bec8b 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -185,17 +185,6 @@ Path::GetTemporaryDirectory(std::string *ErrMsg) {
#endif
}
-Path
-Path::GetCurrentDirectory() {
- char pathname[MAXPATHLEN];
- if (!getcwd(pathname, MAXPATHLEN)) {
- assert(false && "Could not query current working directory.");
- return Path();
- }
-
- return Path(pathname);
-}
-
#if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__Bitrig__) || \
defined(__OpenBSD__) || defined(__minix) || defined(__FreeBSD_kernel__) || \
defined(__linux__) || defined(__CYGWIN__)