[PATCH] D63475: [llvm-readobj] Allow --hex-dump/--string-dump to dump multiple sections

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 02:08:53 PDT 2019


grimar added inline comments.


================
Comment at: tools/llvm-readobj/ObjDumper.cpp:70
+      reportWarning(formatv("could not find section '{0}'", S.first()).str());
+  for (std::pair<int, bool> S : SecIndices)
+    if (!S.second)
----------------
grimar wrote:
> The same. You should use `std::map` I think.
Or, if your intention was to keep the insertion order in the outpuit, you probably need `MapVector`.


Repository:
  rL LLVM

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

https://reviews.llvm.org/D63475





More information about the llvm-commits mailing list