[llvm] [LLVM][DWARF] Refactor code for generating DWARF V5 .debug_names acce… (PR #82264)
    Felipe de Azevedo Piovezan via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Feb 19 09:26:52 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(SmallVector<uint32_t, 0> &hashes) {
+  uint32_t BucketCount = 0;
+
+  llvm::sort(hashes);
----------------
felipepiovezan wrote:
AFAICT we are already inside `namespace llvm`. (same comment below)
https://github.com/llvm/llvm-project/pull/82264
    
    
More information about the llvm-commits
mailing list