[all-commits] [llvm/llvm-project] f68785: [lldb] Change return type of UnixSignals::GetShort...

Alex via All-commits all-commits at lists.llvm.org
Mon Jun 12 16:44:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f687850de87759fa4a76a883971c2f909ae4d1b9
      https://github.com/llvm/llvm-project/commit/f687850de87759fa4a76a883971c2f909ae4d1b9
  Author: Alex Langford <alangford at apple.com>
  Date:   2023-06-12 (Mon, 12 Jun 2023)

  Changed paths:
    M lldb/include/lldb/Target/UnixSignals.h
    M lldb/source/Target/UnixSignals.cpp

  Log Message:
  -----------
  [lldb] Change return type of UnixSignals::GetShortName

The short names of each signal name and alias only exist as ConstStrings
in this one scenario. For example, GetShortName("SIGHUP") will just give
you "HUP". There's not a good reason the string "HUP" needs to be in the
ConstString StringPool, and that's true for just about every signal
name.

Differential Revision: https://reviews.llvm.org/D152582




More information about the All-commits mailing list