## Check how llvm-dwarfdump calculates section sizes ## with --show-section-sizes on a fat binary. # RUN: yaml2obj %p/Inputs/i386_macho_with_debug.yaml -o %t-i386.o # RUN: yaml2obj %p/Inputs/x86_64_macho_with_debug.yaml -o %t-x86_64.o # RUN: llvm-lipo %t-i386.o %t-x86_64.o -create -output %t.o # RUN: llvm-dwarfdump --show-section-sizes %t.o \ # RUN: | FileCheck %s -DFILE=%t.o --match-full-lines --strict-whitespace # CHECK:---------------------------------------------------- # CHECK-NEXT:file: [[FILE]](i386) # CHECK-NEXT:---------------------------------------------------- # CHECK-NEXT:SECTION SIZE (b) # CHECK-NEXT:------------ -------- # CHECK-NEXT:__debug_info 52 (12.04%) # CHECK-EMPTY: # CHECK-NEXT: Total Size: 52 (12.04%) # CHECK-NEXT: Total File Size: 432 # CHECK-NEXT:---------------------------------------------------- # CHECK-NEXT:---------------------------------------------------- # CHECK-NEXT:file: [[FILE]](x86_64) # CHECK-NEXT:---------------------------------------------------- # CHECK-NEXT:SECTION SIZE (b) # CHECK-NEXT:------------ -------- # CHECK-NEXT:__debug_info 64 (13.11%) # CHECK-EMPTY: # CHECK-NEXT: Total Size: 64 (13.11%) # CHECK-NEXT: Total File Size: 488 # CHECK-NEXT:----------------------------------------------------