[all-commits] [llvm/llvm-project] c8bb7c: [lldb] Remove use of ConstString from Args::GetShe...
Alex via All-commits
all-commits at lists.llvm.org
Mon Apr 17 15:18:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c8bb7c234c6814b80e2be27eba9718de7ab1ad79
https://github.com/llvm/llvm-project/commit/c8bb7c234c6814b80e2be27eba9718de7ab1ad79
Author: Alex Langford <alangford at apple.com>
Date: 2023-04-17 (Mon, 17 Apr 2023)
Changed paths:
M lldb/source/Utility/Args.cpp
Log Message:
-----------
[lldb] Remove use of ConstString from Args::GetShellSafeArgument
Having the names of various shells in ConstString's StringPool is not
really necessary, especially if they are otherwise not going to be there
in the first place. For example, if the person debugging uses bash on
their system, the `shell` parameter will have its `m_filename` set to a
ConstString containing "bash". However, fish, tcsh, zsh, and sh will
probably never be used and are just taking up space in the StringPool.
Differential Revision: https://reviews.llvm.org/D148402
More information about the All-commits
mailing list