[Lldb-commits] [PATCH] D123582: [lldb][AArch64] Automatically add all extensions to disassembler

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 12 04:42:40 PDT 2022


labath accepted this revision.
labath added a comment.
This revision is now accepted and ready to land.

This is great. Thanks for doing that.



================
Comment at: lldb/source/Plugins/Disassembler/LLVMC/DisassemblerLLVMC.cpp:1190
+    features_str +=
+        std::accumulate(features.begin(), features.end(), features_str,
+                        [](std::string features, llvm::StringRef feature) {
----------------
If you use `features_str` as the initial accumulator value, then I'd expect you shouldn't need to use += on the line above. Otherwise, you'd get the `+v9.3a` bit twice.

But I'd just say `features_str += llvm::join(features, ",");` instead...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D123582



More information about the lldb-commits mailing list