mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-25 13:05:04 +00:00
[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:
parent
d6d7f7b1d2
commit
fc55b0b384
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user