Don't hardcode the name of the plugin - or it will get out of date, and this code...
authorEnrico Granata <egranata@apple.com>
Thu, 9 Apr 2015 21:52:19 +0000 (21:52 +0000)
committerEnrico Granata <egranata@apple.com>
Thu, 9 Apr 2015 21:52:19 +0000 (21:52 +0000)
Thanks Greg!

llvm-svn: 234539

lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

index aa40b5e..cda8f0f 100644 (file)
@@ -53,6 +53,8 @@
 #include "clang/AST/ASTContext.h"
 #include "clang/AST/DeclObjC.h"
 
+#include "Plugins/Platform/MacOSX/PlatformiOSSimulator.h"
+
 #include <vector>
 
 using namespace lldb;
@@ -1578,11 +1580,9 @@ AppleObjCRuntimeV2::WarnIfNoClassesCached ()
     if (m_noclasses_warning_emitted)
         return;
     
-    static ConstString g_ios_simulator("ios-simulator");
-    
     if (m_process &&
         m_process->GetTarget().GetPlatform() &&
-        m_process->GetTarget().GetPlatform()->GetPluginName() == g_ios_simulator)
+        m_process->GetTarget().GetPlatform()->GetPluginName() == PlatformiOSSimulator::GetPluginNameStatic())
     {
         // the iOS simulator does not have the objc_opt_ro class table
         // so don't actually complain to the user