[all-commits] [llvm/llvm-project] 16e17c: [lldb] Refactor Scalar::TruncOrExtendTo

Pavel Labath via All-commits all-commits at lists.llvm.org
Wed Jun 24 07:08:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 16e17ca16a89daa099fd2726d92f08a49870e5a9
      https://github.com/llvm/llvm-project/commit/16e17ca16a89daa099fd2726d92f08a49870e5a9
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2020-06-24 (Wed, 24 Jun 2020)

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

  Log Message:
  -----------
  [lldb] Refactor Scalar::TruncOrExtendTo

The "type" argument to the function is mostly useless -- the only
interesting aspect of it is signedness. Pass signedness directly and
compute the value of bits and signedness fields -- that's exactly
what the single caller of this function does.




More information about the All-commits mailing list