diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 05:05:37 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-26 05:05:37 +0000 |
commit | bdfe4399dba7370827146e44734b5a5456d223fa (patch) | |
tree | d405111df2b1d52debd571fdd18a4d6e59dc03a7 /lib/Support/Windows/Path.inc | |
parent | 50188c1f42c122640ab9ccac2134acf371c26b2c (diff) | |
download | external_llvm-bdfe4399dba7370827146e44734b5a5456d223fa.zip external_llvm-bdfe4399dba7370827146e44734b5a5456d223fa.tar.gz external_llvm-bdfe4399dba7370827146e44734b5a5456d223fa.tar.bz2 |
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/Path.inc')
-rw-r--r-- | lib/Support/Windows/Path.inc | 9 |
1 files changed, 0 insertions, 9 deletions
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 |