[lldb/Utility] Simplify Scalar::SetValueFromData
authorPavel Labath <pavel@labath.sk>
Mon, 13 Jul 2020 16:04:46 +0000 (18:04 +0200)
committerPavel Labath <pavel@labath.sk>
Mon, 20 Jul 2020 13:56:56 +0000 (15:56 +0200)
commit7fadd7006932adfe65f445aad1e60fe8d7b81eec
tree6ed2b286dc0538e44e08902659be14247f7be8ee
parent9decf0405fe1bd79325ca47dba15d8914608e242
[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.
lldb/include/lldb/Utility/Scalar.h
lldb/source/Utility/Scalar.cpp
lldb/unittests/Utility/ScalarTest.cpp