This is an archive of the discontinued LLVM Phabricator instance.

Form reform for MCDwarf
ClosedPublic

Authored by probinson on Dec 22 2015, 5:49 PM.

Details

Summary

MCDwarf emits a canned abbreviation table, but was not emitting proper
forms for DWARF version 4, which is the default after r249655.

Note: test/MC/MachO/gen-dwarf.s was modified to look for the new
forms, even though Darwin normally wants to default to DWARF 2.
But I think only llvm-mc works this way; if you compile an assembler
file with Clang, it gets the target-based default, because the
driver always passes -dwarf-version and does target defaulting.

FTR the line table produced by MCDwarf is hard-coded to DWARF 2,
regardless of what's requested.

Diff Detail

Repository
rL LLVM

Event Timeline

probinson updated this revision to Diff 43494.Dec 22 2015, 5:49 PM
probinson retitled this revision from to Form reform for MCDwarf.
probinson updated this object.
probinson added reviewers: echristo, aprantl.
probinson added a subscriber: llvm-commits.
echristo accepted this revision.Dec 22 2015, 5:52 PM
echristo edited edge metadata.

Can you add a test to make sure we're doing the right thing for dwarf2 still? (I mean, looking at the code it's obvious that we are, but it'd be good to not break it).

Otherwise LGTM.

-eric

This revision is now accepted and ready to land.Dec 22 2015, 5:52 PM

I think test/MC/ARM/dwarf-asm-multiple-sections-dwarf-2.s is sufficient to prove V2 works?

Sure, I didn't look.

This revision was automatically updated to reflect the committed changes.