[Lldb-commits] [lldb] r312453 - [Core/Value] Remove dead code that hasn't been touched in years. NFC.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Sun Sep 3 12:24:58 PDT 2017


Author: davide
Date: Sun Sep  3 12:24:58 2017
New Revision: 312453

URL: http://llvm.org/viewvc/llvm-project?rev=312453&view=rev
Log:
[Core/Value] Remove dead code that hasn't been touched in years. NFC.

Modified:
    lldb/trunk/source/Core/Value.cpp

Modified: lldb/trunk/source/Core/Value.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Value.cpp?rev=312453&r1=312452&r2=312453&view=diff
==============================================================================
--- lldb/trunk/source/Core/Value.cpp (original)
+++ lldb/trunk/source/Core/Value.cpp Sun Sep  3 12:24:58 2017
@@ -379,31 +379,6 @@ Status Value::GetValueAsData(ExecutionCo
             } else
               address = LLDB_INVALID_ADDRESS;
           }
-          //                    else
-          //                    {
-          //                        ModuleSP exe_module_sp
-          //                        (target->GetExecutableModule());
-          //                        if (exe_module_sp)
-          //                        {
-          //                            address =
-          //                            m_value.ULongLong(LLDB_INVALID_ADDRESS);
-          //                            if (address != LLDB_INVALID_ADDRESS)
-          //                            {
-          //                                if
-          //                                (exe_module_sp->ResolveFileAddress(address,
-          //                                file_so_addr))
-          //                                {
-          //                                    data.SetByteOrder(target->GetArchitecture().GetByteOrder());
-          //                                    data.SetAddressByteSize(target->GetArchitecture().GetAddressByteSize());
-          //                                    address_type = eAddressTypeFile;
-          //                                }
-          //                                else
-          //                                {
-          //                                    address = LLDB_INVALID_ADDRESS;
-          //                                }
-          //                            }
-          //                        }
-          //                    }
         } else {
           error.SetErrorString("can't read load address (invalid process)");
         }




More information about the lldb-commits mailing list