[AsmPrinterDwarf] Add support for .cfi_restore directive
Audit RequiredrL317199

Description

[AsmPrinterDwarf] Add support for .cfi_restore directive

As of today we only use .cfi_offset to specify the offset of a CSR, but
we never use .cfi_restore when the CSR is restored.

If we want to perform a more advanced type of shrink-wrapping, we need
to use .cfi_restore in order to switch the CFI state between blocks.

This patch only aims at adding support for the directive.

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

Details

Auditors
grosbach
Committed
thegamegNov 2 2017, 5:00 AM
Differential Revision
D36114: [AsmPrinterDwarf] Add support for .cfi_restore directive
Parents
rL317198: [SimplifyCFG] Discard speculated dbg intrinsics
Branches
Unknown
Tags
Unknown