James Henderson | a8eef4e | 2019-08-14 10:17:34 +0000 | [diff] [blame] | 1 | ## Show that llvm-size reads stdin if the input file is '-'. |
| 2 | |
| 3 | # RUN: yaml2obj %s -o %t |
| 4 | # RUN: llvm-size -B - < %t | FileCheck %s --check-prefix=BERKELEY |
| 5 | # RUN: llvm-size -A - < %t | FileCheck %s --check-prefix=SYSV |
| 6 | |
| 7 | # BERKELEY: 1 2 4 7 7 <stdin> |
| 8 | # SYSV: <stdin> : |
| 9 | |
| 10 | --- !ELF |
| 11 | FileHeader: |
| 12 | Class: ELFCLASS64 |
| 13 | Data: ELFDATA2LSB |
| 14 | Type: ET_REL |
| 15 | Machine: EM_X86_64 |
| 16 | Sections: |
| 17 | - Name: .text |
| 18 | Type: SHT_PROGBITS |
| 19 | Flags: [SHF_ALLOC, SHF_EXECINSTR] |
| 20 | Size: 1 |
| 21 | Address: 4 |
| 22 | - Name: .data |
| 23 | Type: SHT_PROGBITS |
| 24 | Flags: [SHF_ALLOC, SHF_WRITE] |
| 25 | Size: 2 |
| 26 | Address: 2 |
| 27 | - Name: .bss |
| 28 | Type: SHT_NOBITS |
| 29 | Flags: [SHF_ALLOC, SHF_WRITE] |
| 30 | Size: 4 |
| 31 | Address: 1 |