[llvm] [llvm][ELF] Add statistics on various section sizes (PR #102363)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 13:53:31 PDT 2024
================
@@ -0,0 +1,10 @@
+; REQUIRES: asserts
+; RUN: llc -o /dev/null -filetype=obj -stats %s 2>&1 | FileCheck %s
+
+; CHECK: {{[0-9+]}} elf-object-writer - Total size of SHF_ALLOC text sections
----------------
MaskRay wrote:
`[[#]]`. I think it's fine to test the exact number to ensure that we don't regress.
You can add a variable and test SHF_WRITE as well.
https://github.com/llvm/llvm-project/pull/102363
More information about the llvm-commits
mailing list