[lldb][NFCI] Remove use of ConstString from OptionValue

Summary: No need to create a ConstString, `GetName` already returns a StringRef.

Reviewers: JDevlieghere, mib, jasonmolenda

Subscribers:

Differential Revision: https://reviews.llvm.org/D154386
This commit is contained in:
Alex Langford 2023-07-03 12:55:29 -07:00
parent d6d7f7b1d2
commit fc55b0b384

View File

@ -534,8 +534,8 @@ bool OptionValue::DumpQualifiedName(Stream &strm) const {
if (m_parent_sp->DumpQualifiedName(strm))
dumped_something = true;
}
ConstString name(GetName());
if (name) {
llvm::StringRef name(GetName());
if (!name.empty()) {
if (dumped_something)
strm.PutChar('.');
else