Skip to content

Commit 57d080e

Browse files
Cleanup HostInfoAIX
Including the previous commit, Removed: GetDistributionID, ComputeHostArchitectureSupport and Reduced GetProgramFileSpec as it was not needed
1 parent f8b05df commit 57d080e

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

lldb/source/Host/aix/HostInfoAIX.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,9 @@ void HostInfoAIX::Initialize(SharedLibraryDirectoryHelper *helper) {
2626
HostInfoPosix::Initialize(helper);
2727
}
2828

29-
void HostInfoAIX::Terminate() {
30-
HostInfoBase::Terminate();
31-
}
29+
void HostInfoAIX::Terminate() { HostInfoBase::Terminate(); }
3230

3331
FileSpec HostInfoAIX::GetProgramFileSpec() {
3432
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-
4533
return g_program_filespec;
4634
}

0 commit comments

Comments
 (0)