We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3620de commit 2a4f2a3Copy full SHA for 2a4f2a3
lldb/source/API/SBTarget.cpp
@@ -1618,9 +1618,9 @@ const char *SBTarget::GetArchName() {
1618
LLDB_INSTRUMENT_VA(this);
1619
1620
if (TargetSP target_sp = GetSP()) {
1621
- std::string arch_name =
1622
- target_sp->GetArchitecture().GetTriple().getArchName().str();
1623
- ConstString const_arch_name(arch_name.c_str());
+ llvm::StringRef arch_name =
+ target_sp->GetArchitecture().GetTriple().getArchName();
+ ConstString const_arch_name(arch_name);
1624
1625
return const_arch_name.GetCString();
1626
}
0 commit comments