[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:
1 parent
fc3457d1b1
commit
3cfc7ae22c
33 files changed
+70
-74
No files matched your search
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user