[Lldb-commits] [lldb] [lldb] Parse and display register field enums (PR #95768)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 20 02:37:01 PDT 2024
================
@@ -43,8 +43,7 @@ CompilerType RegisterTypeBuilderClang::GetRegisterType(
ScratchTypeSystemClang::GetForTarget(m_target);
assert(type_system);
- std::string register_type_name = "__lldb_register_fields_";
- register_type_name += name;
+ std::string register_type_name = "__lldb_register_fields_" + name;
----------------
DavidSpickett wrote:
I'll always need a StringRef for GetTypeForIdentifier, and I don't think the Twine can be represented as a single StringRef in this case. So I'll have to call .str() on the Twine regardless.
Unless I am missing another advantage to Twine here?
https://github.com/llvm/llvm-project/pull/95768
More information about the lldb-commits
mailing list