[lldb] Change formatter helper function parameter list to remove ConstString
authorAlex Langford <alangford@apple.com>
Tue, 11 Apr 2023 21:06:06 +0000 (14:06 -0700)
committerAlex Langford <alangford@apple.com>
Wed, 12 Apr 2023 18:20:24 +0000 (11:20 -0700)
commit0e22b8cba786a5da61b9279c4d2d10c756392a2e
tree2e1aee6fd773b8e6c01f96d704c272526e700486
parent85057c1b43d8ee68ebc60b51fa45e047844358b7
[lldb] Change formatter helper function parameter list to remove ConstString

All of these functions take a ConstString for the type_name,
but this isn't really needed for two reasons:
1.) This parameter is always constructed from a static c-string
  constant.
2.) They are passed along to to `AddTypeSummary` as a StringRef anyway.

Differential Revision: https://reviews.llvm.org/D148050
lldb/include/lldb/DataFormatters/FormattersHelpers.h
lldb/source/DataFormatters/FormatManager.cpp
lldb/source/DataFormatters/FormattersHelpers.cpp
lldb/source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp
lldb/source/Plugins/Language/ObjC/ObjCLanguage.cpp