From 365f22000d3612442dc34eb4224357b0591bc4f5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 3 Mar 2008 02:55:43 +0000 Subject: Stub out a Path::GetMainExecutable call to find the path to the main executable of a program. This needs to be implemented on windows. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47835 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/System/Path.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/llvm/System') diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h index ee860e8..c2a1bbc 100644 --- a/include/llvm/System/Path.h +++ b/include/llvm/System/Path.h @@ -161,6 +161,10 @@ namespace sys { /// @returns The dynamic link library suffix for the current platform. /// @brief Return the dynamic link library suffix. static std::string GetDLLSuffix(); + + /// GetMainExecutable - Return the path to the main executable, given the + /// value of argv[0] from program startup and the address of main itself. + static Path GetMainExecutable(const char *argv0, void *MainAddr); /// This is one of the very few ways in which a path can be constructed /// with a syntactically invalid name. The only *legal* invalid name is an -- cgit v1.1