[llvm] [LLVM][DWARF] Refactor code for generating DWARF V5 .debug_names (PR #82394)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 20 15:06:51 PST 2024


================
@@ -613,6 +613,24 @@ enum AcceleratorTable {
   DW_hash_function_djb = 0u
 };
 
+// Uniquify the string hashes and calculate the bucket count for the
+// DWARF v5 Accelerator Table.
+inline uint32_t computeDebugNamesUniqueHashes(MutableArrayRef<uint32_t> hashes,
----------------
cmtice wrote:

I've renamed the function as suggested, and added a note in the function comment that it consumes the array parameter.

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


More information about the llvm-commits mailing list