HomePhabricator

[DebugInfo] Fix dumping CIE ID in .eh_frame sections.

Authored by ikudrin on Jan 29 2020, 6:28 AM.

Description

[DebugInfo] Fix dumping CIE ID in .eh_frame sections.

We do not keep the actual value of the CIE ID field, because it is
predefined, and use a constant when dumping a CIE record. The issue
was that the predefined value is different for .debug_frame and
.eh_frame sections, but we always printed the one which corresponds
to .debug_frame. The patch fixes that by choosing an appropriate
constant to print.

See the following for more information about .eh_frame sections:
https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/ehframechpt.html

Differential Revision: https://reviews.llvm.org/D73627

Details

Committed
ikudrinFeb 13 2020, 12:42 AM
Differential Revision
D73627: [DebugInfo] Fix dumping CIE ID in .eh_frame sections.
Parents
rG2e8c112ecf56: [mlir] Add elementAttr to TypedArrayAttrBase.
Branches
Unknown
Tags
Unknown