[compiler-rt] [llvm] [llvm-cov][gcov] Support multi-files coverage in one basic block (PR #144504)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 23:00:11 PDT 2025


================
@@ -322,7 +320,7 @@ namespace {
     GCOVBlock(GCOVProfiler *P, uint32_t Number)
         : GCOVRecord(P), Number(Number) {}
 
-    StringMap<GCOVLines> LinesByFile;
+    SmallVector<GCOVLines, 4> Lines;
----------------
MaskRay wrote:

inline element count of 4 is wasteful. Just use 0.

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


More information about the llvm-commits mailing list