[llvm] [llvm-objdump] Add support for symbolizing PGOBBAddrMap Info (PR #76386)

Micah Weston via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 5 13:36:26 PST 2024


================
@@ -2083,8 +2141,9 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
           // Print local label if there's any.
           auto Iter1 = BBAddrMapLabels.find(SectionAddr + Index);
           if (Iter1 != BBAddrMapLabels.end()) {
-            for (StringRef Label : Iter1->second)
-              FOS << "<" << Label << ">:\n";
+            for (const auto &LabelParts : Iter1->second)
+              FOS << "<" << std::get<0>(LabelParts) << ">"
----------------
red1bluelost wrote:

Once the `struct` is added, these can just become field access.

https://github.com/llvm/llvm-project/pull/76386


More information about the llvm-commits mailing list