Home | History | Annotate | Download | only in Object
      1 RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-nm \
      2 RUN:         | FileCheck %s -check-prefix COFF
      3 RUN: yaml2obj %p/Inputs/COFF/x86-64.yaml | llvm-nm \
      4 RUN:         | FileCheck %s -check-prefix COFF
      5 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \
      6 RUN:         | FileCheck %s -check-prefix ELF
      7 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \
      8 RUN:         | FileCheck %s -check-prefix ELF
      9 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
     10 RUN:         | FileCheck %s -check-prefix macho
     11 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
     12 RUN:         | FileCheck %s -check-prefix macho64
     13 
     14 COFF: 00000000 d .data
     15 COFF: 00000000 t .text
     16 COFF: 00000000 d L{{_?}}.str
     17 COFF:          U {{_?}}SomeOtherFunction
     18 COFF: 00000000 T {{_?}}main
     19 COFF:          U {{_?}}puts
     20 
     21 ELF-NOT:      U
     22 ELF:          U SomeOtherFunction
     23 ELF: 00000000 T main
     24 ELF:          U puts
     25 
     26 
     27 macho: 00000000 U _SomeOtherFunction
     28 macho: 00000000 s _main
     29 macho: 00000000 U _puts
     30 
     31 macho64: 00000028 s L_.str
     32 macho64: 00000000 u _SomeOtherFunction
     33 macho64: 00000000 s _main
     34 macho64: 00000000 u _puts
     35