[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 11:07:45 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:

I don't really want to hardcode the value of this stat in the test, and I'm not sure how else I'd test it?

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


More information about the llvm-commits mailing list