diff options
author | Davide Italiano <davide@freebsd.org> | 2015-08-12 10:36:16 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2015-08-12 10:36:16 +0000 |
commit | 96887f755bb258d4d4af0118d22ea105011a412c (patch) | |
tree | 588548cb5a03bb0276be706b69fc5c6d1bdfa620 /llvm | |
parent | 916736ef73efc99a42058cc6ad1af854591038bc (diff) | |
download | bcm5719-llvm-96887f755bb258d4d4af0118d22ea105011a412c.tar.gz bcm5719-llvm-96887f755bb258d4d4af0118d22ea105011a412c.zip |
[MC] Convert the last test using macho-dump under X86/ to llvm-readobj.
llvm-svn: 244732
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/test/MC/X86/cfi_def_cfa-crash.s | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/llvm/test/MC/X86/cfi_def_cfa-crash.s b/llvm/test/MC/X86/cfi_def_cfa-crash.s index 9d22d6e281c..74b41d9943a 100644 --- a/llvm/test/MC/X86/cfi_def_cfa-crash.s +++ b/llvm/test/MC/X86/cfi_def_cfa-crash.s @@ -1,4 +1,4 @@ -// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - | macho-dump | FileCheck %s +// RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - | llvm-readobj -sections | FileCheck %s // We were trying to generate compact unwind info for assembly like this. // The .cfi_def_cfa directive, however, throws a wrench into that and was @@ -68,6 +68,22 @@ _foo: ret .cfi_endproc - - -// CHECK: 'section_name', '__eh_frame\x00 +// CHECK: Section { +// CHECK: Index: 1 +// CHECK: Name: __eh_frame (5F 5F 65 68 5F 66 72 61 6D 65 00 00 00 00 00 00) +// CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00) +// CHECK: Address: 0x70 +// CHECK: Size: 0x40 +// CHECK: Offset: 480 +// CHECK: Alignment: 3 +// CHECK: RelocationOffset: 0x0 +// CHECK: RelocationCount: 0 +// CHECK: Type: 0xB +// CHECK: Attributes [ (0x680000) +// CHECK: LiveSupport (0x80000) +// CHECK: NoTOC (0x400000) +// CHECK: StripStaticSyms (0x200000) +// CHECK: ] +// CHECK: Reserved1: 0x0 +// CHECK: Reserved2: 0x0 +// CHECK: } |