[llvm] [llvm-size] Add --exclude-pagezero option for Mach-O to exclude __PAGEZERO size. (PR #159574)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 26 00:03:48 PDT 2025


================
@@ -6,12 +6,24 @@
 # RUN: llvm-size --exclude-pagezero %t-pagezero.o | \
 # RUN:   FileCheck %s --check-prefix=SKIP --match-full-lines
 
+# RUN: yaml2obj %s --docnum=2 -o %t-pagezero32.o
+# RUN: llvm-size %t-pagezero32.o | \
+# RUN:   FileCheck %s --check-prefix=NORMAL32 --match-full-lines
----------------
jh7370 wrote:

As the check values are identical, you can just share the prefixes, so you don't need both NORMAL32 and NORMAL, nor both SKIP32 and SKIP. Just repeat the prefix in both cases.

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


More information about the llvm-commits mailing list