JDevlieghere added inline comments.

================
Comment at: lldb/source/API/SBTarget.cpp:1596-1597
+  if (target_sp) {
+    std::string abi_name(target_sp->GetABIName().str());
+    ConstString const_name(abi_name.c_str());
+    return const_name.GetCString();
----------------
I think `ConstString` has a ctor that takes a StringRef so you should be able 
to do  `ConstString abi_name(target_sp->GetABIName())` directly.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121348/new/

https://reviews.llvm.org/D121348

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to