[Lldb-commits] [lldb] e55bc19 - [lldb] Remove unused GetDynamicOrSyntheticValue (NFC) (#193111)

via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 20 18:51:06 PDT 2026


Author: Dave Lee
Date: 2026-04-20T18:51:02-07:00
New Revision: e55bc1922e4cbf4022b80f6441c8cc8b96a5d3b6

URL: https://github.com/llvm/llvm-project/commit/e55bc1922e4cbf4022b80f6441c8cc8b96a5d3b6
DIFF: https://github.com/llvm/llvm-project/commit/e55bc1922e4cbf4022b80f6441c8cc8b96a5d3b6.diff

LOG: [lldb] Remove unused GetDynamicOrSyntheticValue (NFC) (#193111)

Added: 
    

Modified: 
    lldb/source/ValueObject/DILEval.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/ValueObject/DILEval.cpp b/lldb/source/ValueObject/DILEval.cpp
index 7801b9225f19e..01e5238ddd6d0 100644
--- a/lldb/source/ValueObject/DILEval.cpp
+++ b/lldb/source/ValueObject/DILEval.cpp
@@ -22,28 +22,6 @@
 
 namespace lldb_private::dil {
 
-lldb::ValueObjectSP
-GetDynamicOrSyntheticValue(lldb::ValueObjectSP value_sp,
-                           lldb::DynamicValueType use_dynamic,
-                           bool use_synthetic) {
-  if (!value_sp)
-    return nullptr;
-
-  if (use_dynamic != lldb::eNoDynamicValues) {
-    lldb::ValueObjectSP dynamic_sp = value_sp->GetDynamicValue(use_dynamic);
-    if (dynamic_sp)
-      value_sp = dynamic_sp;
-  }
-
-  if (use_synthetic) {
-    lldb::ValueObjectSP synthetic_sp = value_sp->GetSyntheticValue();
-    if (synthetic_sp)
-      value_sp = synthetic_sp;
-  }
-
-  return value_sp;
-}
-
 static CompilerType GetBasicType(lldb::TypeSystemSP type_system,
                                  lldb::BasicType basic_type) {
   if (type_system)


        


More information about the lldb-commits mailing list