1 ## Check how llvm-dwarfdump calculates section sizes
2 ## with --show-section-sizes for ELF objects.
4 # RUN: yaml2obj %s | llvm-dwarfdump - --show-section-sizes \
5 # RUN: | FileCheck %s --match-full-lines --strict-whitespace
7 # CHECK:----------------------------------------------------
8 # CHECK-NEXT:file: {{.*}}
9 # CHECK-NEXT:----------------------------------------------------
10 # CHECK-NEXT:SECTION SIZE (b)
11 # CHECK-NEXT:--------------- --------
12 # CHECK-NEXT:.debug_info 17 (1.62%)
13 # CHECK-NEXT:.debug_line 19 (1.81%)
14 # CHECK-NEXT:.debug_loc 1 (0.10%)
15 # CHECK-NEXT:.debug_type 26 (2.48%)
16 # CHECK-NEXT:.debug_foo 100 (9.54%)
17 # CHECK-NEXT:.debug_info.dwo 9 (0.86%)
19 # CHECK-NEXT: Total Size: 172 (16.41%)
20 # CHECK-NEXT: Total File Size: 1048
21 # CHECK-NEXT:----------------------------------------------------
42 - Name: .debug_type (1)
48 - Name: .debug_info.dwo
51 ## This is a debug section following the Mach-O naming style, and is used
52 ## to show that such sections are not included in the report.