[all-commits] [llvm/llvm-project] 7fadd7: [lldb/Utility] Simplify Scalar::SetValueFromData

Pavel Labath via All-commits all-commits at lists.llvm.org
Mon Jul 20 07:06:32 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7fadd7006932adfe65f445aad1e60fe8d7b81eec
      https://github.com/llvm/llvm-project/commit/7fadd7006932adfe65f445aad1e60fe8d7b81eec
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-07-20 (Mon, 20 Jul 2020)

  Changed paths:
    M lldb/include/lldb/Utility/Scalar.h
    M lldb/source/Utility/Scalar.cpp
    M lldb/unittests/Utility/ScalarTest.cpp

  Log Message:
  -----------
  [lldb/Utility] Simplify Scalar::SetValueFromData

The function was fairly complicated and didn't support new bigger
integer sizes. Use llvm function for loading an APInt from memory to
write a unified implementation for all sizes.




More information about the All-commits mailing list