From bdfe4399dba7370827146e44734b5a5456d223fa Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 26 Jun 2013 05:05:37 +0000 Subject: Remove sys::GetMainExecutable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184916 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Path.inc | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib/Support/Windows/Path.inc') diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc index 729d388..423c038 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 -- cgit v1.1