diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp index 584449430829..ae37aa831f8b 100644 --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -60,9 +60,6 @@ #include "AppleObjCDeclVendor.h" #include "AppleObjCTrampolineHandler.h" -#if defined(__APPLE__) -#include "Plugins/Platform/MacOSX/PlatformiOSSimulator.h" -#endif using namespace lldb; using namespace lldb_private; @@ -1803,17 +1800,14 @@ AppleObjCRuntimeV2::WarnIfNoClassesCached () if (m_noclasses_warning_emitted) return; -#if defined(__APPLE__) if (m_process && m_process->GetTarget().GetPlatform() && - m_process->GetTarget().GetPlatform()->GetPluginName() == PlatformiOSSimulator::GetPluginNameStatic()) + m_process->GetTarget().GetPlatform()->GetPluginName().GetStringRef().endswith("-simulator")) { - // the iOS simulator does not have the objc_opt_ro class table - // so don't actually complain to the user + // Simulators do not have the objc_opt_ro class table so don't actually complain to the user m_noclasses_warning_emitted = true; return; } -#endif Debugger &debugger(GetProcess()->GetTarget().GetDebugger());