[Lldb-commits] [PATCH] D13948: [AppleObjCRuntime] Don't bother looking for the runtime on non-apple targets

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 22 02:37:10 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL251004: [AppleObjCRuntime] Don't bother looking for the runtime on non-apple targets (authored by labath).

Changed prior to commit:
  http://reviews.llvm.org/D13948?vs=38020&id=38103#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D13948

Files:
  lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp

Index: lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
===================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
+++ lldb/trunk/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
@@ -382,8 +382,11 @@
 {
     if (!process)
         return ObjCRuntimeVersions::eObjC_VersionUnknown;
-        
+
     Target &target = process->GetTarget();
+    if (target.GetArchitecture().GetTriple().getVendor() != llvm::Triple::VendorType::Apple)
+        return ObjCRuntimeVersions::eObjC_VersionUnknown;
+
     const ModuleList &target_modules = target.GetImages();
     Mutex::Locker modules_locker(target_modules.GetMutex());
     


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13948.38103.patch
Type: text/x-patch
Size: 779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151022/45d0cc69/attachment-0001.bin>


More information about the lldb-commits mailing list