[all-commits] [llvm/llvm-project] 1847f4: [lldb/Utility] Rewrite Scalar::SetValueFromCString

Pavel Labath via All-commits all-commits at lists.llvm.org
Mon Jul 13 07:45:07 PDT 2020


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

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

  Log Message:
  -----------
  [lldb/Utility] Rewrite Scalar::SetValueFromCString

The function's reliance on host types meant that it was needlessly
complicated, and did not handle the newer (wider) types. Rewrite it in
terms of APInt/APFloat functions to save code and improve functionality.




More information about the All-commits mailing list