summaryrefslogtreecommitdiff
path: root/include/llvm/System/Path.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-03 02:55:43 +0000
committerChris Lattner <sabre@nondot.org>2008-03-03 02:55:43 +0000
commit1a091447f495bcf14a182e5960236db5f3adfede (patch)
tree6f7b39c16ee2d790cfad1277d483fd19d12322a9 /include/llvm/System/Path.h
parent53b727791729c5fc1ea5e40dd41fe93bfcde0288 (diff)
downloadllvm-1a091447f495bcf14a182e5960236db5f3adfede.tar.gz
llvm-1a091447f495bcf14a182e5960236db5f3adfede.tar.bz2
llvm-1a091447f495bcf14a182e5960236db5f3adfede.tar.xz
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
Diffstat (limited to 'include/llvm/System/Path.h')
-rw-r--r--include/llvm/System/Path.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/System/Path.h b/include/llvm/System/Path.h
index ee860e8cf9..c2a1bbc7c8 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