[lldb] Make use of ConstString(StringRef) where applicable (NFC) (#197954)

Replace `ConstString(char *)`, mostly with the `StringRef` constructor.
Eliminates some unnecessary `strlen`, and a few copies.
This commit is contained in:
Dave Lee authored and GitHub committed 2026-05-15 11:54:35 -07:00
1 parent fc3457d1b1
commit 3cfc7ae22c
33 files changed
+70 -74

No files matched your search

+1 -1
View File
@@ -587,7 +587,7 @@ const char *SBModule::GetTriple() {
// Unique the string so we don't run into ownership issues since the const
// strings put the string into the string pool once and the strings never
// comes out
ConstString const_triple(triple.c_str());
ConstString const_triple(triple);
return const_triple.GetCString();
}