We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b05df commit 57d080eCopy full SHA for 57d080e
lldb/source/Host/aix/HostInfoAIX.cpp
@@ -26,21 +26,9 @@ void HostInfoAIX::Initialize(SharedLibraryDirectoryHelper *helper) {
26
HostInfoPosix::Initialize(helper);
27
}
28
29
-void HostInfoAIX::Terminate() {
30
- HostInfoBase::Terminate();
31
-}
+void HostInfoAIX::Terminate() { HostInfoBase::Terminate(); }
32
33
FileSpec HostInfoAIX::GetProgramFileSpec() {
34
static FileSpec g_program_filespec;
35
-
36
- if (!g_program_filespec) {
37
- char exe_path[PATH_MAX];
38
- ssize_t len = readlink("/proc/self/exe", exe_path, sizeof(exe_path) - 1);
39
- if (len > 0) {
40
- exe_path[len] = 0;
41
- g_program_filespec.SetFile(exe_path, FileSpec::Style::native);
42
- }
43
44
45
return g_program_filespec;
46
0 commit comments