Author: emaste
Date: Fri Nov 20 13:32:58 2015
New Revision: 253699

URL: http://llvm.org/viewvc/llvm-project?rev=253699&view=rev
Log:
Call Platform::SetHostPlatform in the NetBSD platform only on NetBSD

Patch by Kamil Rytarowski

Differential Revision: http://reviews.llvm.org/D14876

Modified:
    lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp

Modified: lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp?rev=253699&r1=253698&r2=253699&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp (original)
+++ lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp Fri Nov 20 
13:32:58 2015
@@ -94,10 +94,12 @@ PlatformNetBSD::Initialize ()
 
     if (g_initialize_count++ == 0)
     {
+#if defined(__NetBSD__)
         // Force a host flag to true for the default platform object.
         PlatformSP default_platform_sp (new PlatformNetBSD(true));
         
default_platform_sp->SetSystemArchitecture(HostInfo::GetArchitecture());
         Platform::SetHostPlatform (default_platform_sp);
+#endif
         
PluginManager::RegisterPlugin(PlatformNetBSD::GetPluginNameStatic(false),
                                       
PlatformNetBSD::GetDescriptionStatic(false),
                                       PlatformNetBSD::CreateInstance);


_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to