[all-commits] [llvm/llvm-project] fe9297: [lldb] Add a single bit constructor for RegisterFl...

David Spickett via All-commits all-commits at lists.llvm.org
Mon Oct 23 10:16:16 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe929770f41e7b962ebaaeb0a77773a3b03f8b8c
      https://github.com/llvm/llvm-project/commit/fe929770f41e7b962ebaaeb0a77773a3b03f8b8c
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2023-10-23 (Mon, 23 Oct 2023)

  Changed paths:
    M lldb/include/lldb/Target/RegisterFlags.h
    M lldb/unittests/Target/RegisterFlagsTest.cpp

  Log Message:
  -----------
  [lldb] Add a single bit constructor for RegisterFlags::Field (#69315)

This means you don't have to do RegisterField("", 0, 0), you can do
RegisterField("", 0).

Which is useful for testing and even more useful when we are writing
definitions of real registers which have 10s of single bit fields.




More information about the All-commits mailing list