Add code to llvm-objdump so the -section option with -macho will disassemble sections
[oota-llvm.git] / test / tools / llvm-objdump / X86 / macho-nontext-disasm.test
1 # RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __FOO,__bar -full-leading-addr -print-imm-hex -no-show-raw-insn - | FileCheck %s
2
3 .section __FOO, __bar
4 _foo:
5         nop
6
7 # CHECK: Contents of (__FOO,__bar) section
8 # CHECK: _foo:
9 # CHECK: 0000000000000000       nop