summaryrefslogtreecommitdiff
path: root/lib/Support/Windows
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-26 05:05:37 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-26 05:05:37 +0000
commitbdfe4399dba7370827146e44734b5a5456d223fa (patch)
treed405111df2b1d52debd571fdd18a4d6e59dc03a7 /lib/Support/Windows
parent50188c1f42c122640ab9ccac2134acf371c26b2c (diff)
downloadllvm-bdfe4399dba7370827146e44734b5a5456d223fa.tar.gz
llvm-bdfe4399dba7370827146e44734b5a5456d223fa.tar.bz2
llvm-bdfe4399dba7370827146e44734b5a5456d223fa.tar.xz
Remove sys::GetMainExecutable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows')
-rw-r--r--lib/Support/Windows/Path.inc9
1 files changed, 0 insertions, 9 deletions
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc
index 729d388471..423c038504 100644
--- a/lib/Support/Windows/Path.inc
+++ b/lib/Support/Windows/Path.inc
@@ -200,15 +200,6 @@ Path::GetCurrentDirectory() {
return Path(pathname);
}
-/// GetMainExecutable - Return the path to the main executable, given the
-/// value of argv[0] from program startup.
-Path Path::GetMainExecutable(const char *argv0, void *MainAddr) {
- char pathname[MAX_PATH];
- DWORD ret = ::GetModuleFileNameA(NULL, pathname, MAX_PATH);
- return ret != MAX_PATH ? Path(pathname) : Path();
-}
-
-
// FIXME: the above set of functions don't map to Windows very well.
bool