[all-commits] [llvm/llvm-project] ac6799: [lldb] Improve RegisterValue::GetScalarValue

Pavel Labath via All-commits all-commits at lists.llvm.org
Wed Nov 4 05:57:43 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ac6799d25a59e262191e0babcd7024537fda467e
      https://github.com/llvm/llvm-project/commit/ac6799d25a59e262191e0babcd7024537fda467e
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-11-04 (Wed, 04 Nov 2020)

  Changed paths:
    M lldb/source/Utility/RegisterValue.cpp
    M lldb/unittests/Utility/RegisterValueTest.cpp

  Log Message:
  -----------
  [lldb] Improve RegisterValue::GetScalarValue

Using Scalar::SetValueFromData, we make the code simpler, handle
big-endian systems properly, _and_ avoid type aliasing issues.




More information about the All-commits mailing list