This revision was automatically updated to reflect the committed changes.
Closed by commit rL253699: Call Platform::SetHostPlatform in the NetBSD 
platform only on NetBSD (authored by emaste).

Changed prior to commit:
  http://reviews.llvm.org/D14876?vs=40796&id=40808#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D14876

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

Index: lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
===================================================================
--- lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
+++ lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
@@ -94,10 +94,12 @@
 
     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);


Index: lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
===================================================================
--- lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
+++ lldb/trunk/source/Plugins/Platform/NetBSD/PlatformNetBSD.cpp
@@ -94,10 +94,12 @@
 
     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