This is an archive of the discontinued LLVM Phabricator instance.

Emit .cfi_sections before the first .cfi_startproc
ClosedPublic

Authored by joerg on Dec 20 2016, 6:02 PM.

Details

Summary

GNU as rejects input where .cfi_sections is used after .cfi_startproc, if the new section differs from the old. Adjust our output to always emit .cfi_sections before the first .cfi_startproc to minimize necessary code.

Diff Detail

Event Timeline

joerg updated this revision to Diff 82188.Dec 20 2016, 6:02 PM
joerg retitled this revision from to Emit .cfi_sections before the first .cfi_startproc.
joerg updated this object.
joerg added a reviewer: majnemer.
joerg added a subscriber: llvm-commits.
majnemer accepted this revision.Dec 25 2016, 1:57 PM
majnemer edited edge metadata.

LGTM, I'd name it hasEmittedCFISections

Should/do we reject this in the parser?

This revision is now accepted and ready to land.Dec 25 2016, 1:57 PM
This revision was automatically updated to reflect the committed changes.