summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitef03b9fc52077bddb29f1549afb2defeb53af8c2 (patch)
treefb7dc5ac458607315287faf43ad43b940f65598c /llvm/lib/Support/Unix
parent059cead5ed7aa11ce1eae0bcc751ea0d1e23ea75 (diff)
downloadbcm5719-llvm-ef03b9fc52077bddb29f1549afb2defeb53af8c2.tar.gz
bcm5719-llvm-ef03b9fc52077bddb29f1549afb2defeb53af8c2.zip
Replace use of PathV1.h in MCContext.cpp.
GetCurrentDirectory is now unused. Remove it. llvm-svn: 184003
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Path.inc11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 57f02be1094..06b18bec8b6 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/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__)
OpenPOWER on IntegriCloud