Skip to content

Commit 9669223

Browse files
committed
[lldb] Remove two #ifndef linux from Platform.cpp
These have been here since r215992, guarding the calls to HostInfo, but their purpose unclear -- HostInfoLinux provides these functions and they work fine.
1 parent f5b8f12 commit 9669223

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

lldb/source/Target/Platform.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -497,24 +497,14 @@ bool Platform::GetOSBuildString(std::string &s) {
497497
s.clear();
498498

499499
if (IsHost())
500-
#if !defined(__linux__)
501500
return HostInfo::GetOSBuildString(s);
502-
#else
503-
return false;
504-
#endif
505-
else
506-
return GetRemoteOSBuildString(s);
501+
return GetRemoteOSBuildString(s);
507502
}
508503

509504
bool Platform::GetOSKernelDescription(std::string &s) {
510505
if (IsHost())
511-
#if !defined(__linux__)
512506
return HostInfo::GetOSKernelDescription(s);
513-
#else
514-
return false;
515-
#endif
516-
else
517-
return GetRemoteOSKernelDescription(s);
507+
return GetRemoteOSKernelDescription(s);
518508
}
519509

520510
void Platform::AddClangModuleCompilationOptions(

0 commit comments

Comments
 (0)