[Lldb-commits] [PATCH] D152837: [lldb] Identify Swift-implemented ObjC classes

Dave Lee via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 13 11:06:34 PDT 2023


kastiglione added inline comments.


================
Comment at: lldb/source/Core/ValueObjectDynamicValue.cpp:119-123
+    if (auto *runtime = llvm::dyn_cast_or_null<ObjCLanguageRuntime>(
+            process->GetLanguageRuntime(lldb::eLanguageTypeObjC)))
+      if (auto class_sp = runtime->GetClassDescriptor(valobj))
+        if (class_sp->IsSwift())
+          return true;
----------------
@bulbazord this is where it's used, to work with `ClassDescriptor` which is part of the `ObjCLanguageRuntime`. I don't think it would make sense to lift that into the generic `LangaugeRuntime`. What other courses might there be?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152837/new/

https://reviews.llvm.org/D152837



More information about the lldb-commits mailing list