[lld] [lld][InstrProf] Refactor BPSectionOrderer.cpp (PR #107347)

Peter Rong via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 10:46:10 PDT 2024


================
@@ -60,12 +60,13 @@ getRelocHash(const Reloc &reloc,
   return getRelocHash(kind, sectionIdx.value_or(0), 0, reloc.addend);
 }
 
-static void constructNodesForCompression(
-    const SmallVector<const InputSection *> &sections,
+static SmallVector<
----------------
DataCorrupted wrote:

Can you add comments to this function about:
- What is the return value
- What is `Uns`

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


More information about the llvm-commits mailing list