This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Unclamp line table version on Darwin for v5 and later.
ClosedPublic

Authored by JDevlieghere on Jul 16 2018, 8:33 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

JDevlieghere created this revision.Jul 16 2018, 8:33 AM
aprantl added inline comments.Jul 30 2018, 8:15 AM
llvm/test/CodeGen/Generic/dwarf-md5.ll
5 ↗(On Diff #155689)

why does this still work? Wouldn't it yield a DWARF v2 linetable on darwin?

JDevlieghere added inline comments.Jul 31 2018, 5:48 AM
llvm/test/CodeGen/Generic/dwarf-md5.ll
5 ↗(On Diff #155689)

Yup, but the check-lines are identical for version 4 and 2. If you dwarfdump the object file you'll find it's indeed version 2.

dwarf-md5.ll.tmp4.o: file format Mach-O 64-bit x86-64
.debug_line contents:
debug_line[0x00000000]
Line table prologue:
    total_length: 0x00000029
    version: 2

Add comment to tests explaining why this works on Darwin.

@aprantl Does this LGTY?

aprantl accepted this revision.Aug 8 2018, 8:44 AM

Looks right.

This revision is now accepted and ready to land.Aug 8 2018, 8:44 AM
This revision was automatically updated to reflect the committed changes.