From: Pavel Labath Date: Fri, 17 Sep 2021 11:16:26 +0000 (+0200) Subject: [lldb] Remove two #ifndef linux from Platform.cpp X-Git-Tag: upstream/15.0.7~31121 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=966922320f09b8bf6e4a69a32f344b3acec36434;p=platform%2Fupstream%2Fllvm.git [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. --- diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index a9b97f7..7f762a6 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -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(