[lldb] Remove two #ifndef linux from Platform.cpp
authorPavel Labath <pavel@labath.sk>
Fri, 17 Sep 2021 11:16:26 +0000 (13:16 +0200)
committerPavel Labath <pavel@labath.sk>
Mon, 20 Sep 2021 06:30:02 +0000 (08:30 +0200)
These have been here since r215992, guarding the calls to HostInfo, but
their purpose unclear -- HostInfoLinux provides these functions and they
work fine.

lldb/source/Target/Platform.cpp

index a9b97f7..7f762a6 100644 (file)
@@ -497,24 +497,14 @@ bool Platform::GetOSBuildString(std::string &s) {
   s.clear();
 
   if (IsHost())
-#if !defined(__linux__)
     return HostInfo::GetOSBuildString(s);
-#else
-    return false;
-#endif
-  else
-    return GetRemoteOSBuildString(s);
+  return GetRemoteOSBuildString(s);
 }
 
 bool Platform::GetOSKernelDescription(std::string &s) {
   if (IsHost())
-#if !defined(__linux__)
     return HostInfo::GetOSKernelDescription(s);
-#else
-    return false;
-#endif
-  else
-    return GetRemoteOSKernelDescription(s);
+  return GetRemoteOSKernelDescription(s);
 }
 
 void Platform::AddClangModuleCompilationOptions(