[all-commits] [llvm/llvm-project] 6fcdfc: [lldb] Change return type of FileSpec::GetFileName...
Alex via All-commits
all-commits at lists.llvm.org
Wed Apr 26 15:56:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6fcdfc378c2f926ed5a175326fe799844c1c80b2
https://github.com/llvm/llvm-project/commit/6fcdfc378c2f926ed5a175326fe799844c1c80b2
Author: Alex Langford <alangford at apple.com>
Date: 2023-04-26 (Wed, 26 Apr 2023)
Changed paths:
M lldb/include/lldb/Utility/FileSpec.h
M lldb/source/Commands/CommandObjectTarget.cpp
M lldb/source/Core/Debugger.cpp
M lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
M lldb/source/Plugins/Platform/Android/PlatformAndroid.cpp
M lldb/source/Plugins/Platform/MacOSX/PlatformDarwinKernel.cpp
M lldb/source/Plugins/ScriptInterpreter/Lua/Lua.cpp
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
M lldb/source/Utility/FileSpec.cpp
M lldb/unittests/Utility/FileSpecTest.cpp
Log Message:
-----------
[lldb] Change return type of FileSpec::GetFileNameExtension
These don't really need to be in ConstStrings. It's nice that comparing
ConstStrings is fast (just a pointer comparison) but the cost of
creating the ConstString usually already includes the cost of doing a
StringRef comparison anyway, so this is just extra work and extra memory
consumption for basically no benefit.
Differential Revision: https://reviews.llvm.org/D149300
More information about the All-commits
mailing list