llvm-project/llvm/test/CodeGen/X86/section-stats.ll
Arthur Eubanks e44ecf76e0
[llvm][ELF] Add ELF header/section header table size statistics (#109345)
Followup to #102363. This makes the `elf-object-writer.*Bytes` stats sum
up to `assembler.ObjectBytes`.
2024-09-23 13:53:58 -07:00

16 lines
473 B
LLVM

; REQUIRES: asserts
; RUN: llc -o /dev/null -filetype=obj -stats %s 2>&1 | FileCheck %s
; CHECK-DAG: 1 elf-object-writer - Total size of SHF_ALLOC text sections
; CHECK-DAG: 1 elf-object-writer - Total size of SHF_ALLOC read-write sections
; CHECK-DAG: 512 elf-object-writer - Total size of section headers table
; CHECK-DAG: 64 elf-object-writer - Total size of ELF headers
target triple = "x86_64-unknown-linux-gnu"
@g = global i8 1
define void @f() {
ret void
}