[llvm] [llvm][ELF] Add ELF header/section header table size statistics (PR #109345)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 20 12:09:42 PDT 2024


================
@@ -1008,6 +1011,8 @@ void ELFWriter::writeSectionHeaders(const MCAssembler &Asm) {
 
     writeSectionHeader(GroupSymbolIndex, Offsets.first, Size, *Section);
   }
+
+  stats::SectionHeaderBytes += W.OS.tell() - Start;
----------------
aeubanks wrote:

done

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


More information about the llvm-commits mailing list