diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-04 00:31:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2010-12-04 00:31:13 +0000 |
commit | 1048e75fb9f76233152e3848cef65c18d6d39e03 (patch) | |
tree | c3d24efa5e4c7cb60f071a9966b5dbaa13807198 /llvm/test/MC/ELF/empty-dwarf-lines.s | |
parent | ce18d7ebb5e17df724c1e0289c9897b0c717a691 (diff) | |
download | bcm5719-llvm-1048e75fb9f76233152e3848cef65c18d6d39e03.tar.gz bcm5719-llvm-1048e75fb9f76233152e3848cef65c18d6d39e03.zip |
Next step: Only pad debug_line when the target is darwin. Add a FIXME to avoid
doing that if the target is darwin10 or newer.
This fixes
*) Direct object emission was producing objects without the workaround on
darwin9.
*) Assembly printing was producing objects with the workaround on linux.
llvm-svn: 120866
Diffstat (limited to 'llvm/test/MC/ELF/empty-dwarf-lines.s')
-rw-r--r-- | llvm/test/MC/ELF/empty-dwarf-lines.s | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/MC/ELF/empty-dwarf-lines.s b/llvm/test/MC/ELF/empty-dwarf-lines.s new file mode 100644 index 00000000000..81d98711e9d --- /dev/null +++ b/llvm/test/MC/ELF/empty-dwarf-lines.s @@ -0,0 +1,21 @@ +// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - | elf-dump | FileCheck %s + +// Test that the dwarf debug_line section contains no line directives. + + .file 1 "test.c" + .globl c +c: + .asciz "hi\n" + +// CHECK: # Section 0x00000004 +// CHECK-NEXT: (('sh_name', 0x00000012) # '.debug_line' +// CHECK-NEXT: ('sh_type', 0x00000000) +// CHECK-NEXT: ('sh_flags', 0x00000000) +// CHECK-NEXT: ('sh_addr', 0x00000000) +// CHECK-NEXT: ('sh_offset', 0x00000044) +// CHECK-NEXT: ('sh_size', 0x00000027) +// CHECK-NEXT: ('sh_link', 0x00000000) +// CHECK-NEXT: ('sh_info', 0x00000000) +// CHECK-NEXT: ('sh_addralign', 0x00000001) +// CHECK-NEXT: ('sh_entsize', 0x00000000) +// CHECK-NEXT: ), |