HomePhabricator

[DebugInfo] DW_OP_deref_size in PrologEpilogInserter.

Authored by markus on Apr 12 2019, 1:23 AM.

Description

[DebugInfo] DW_OP_deref_size in PrologEpilogInserter.

The PrologEpilogInserter need to insert a DW_OP_deref_size before
prepending a memory location expression to an already implicit
expression to avoid having the existing expression act on the memory
address instead of the value behind it.

The reason for using DW_OP_deref_size and not plain DW_OP_deref is that
big-endian targets need to read the right size as simply truncating a
larger read would yield the wrong result (LSB bytes are not at the lower
address).

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

llvm-svn: 358268

Details

Committed
markusApr 12 2019, 1:23 AM
Differential Revision
D59687: [DebugInfo] Prologue inserter need to insert DW_OP_deref_size
Parents
rG9b795b3c049c: Fix missing arguments in tutorial
Branches
Unknown
Tags
Unknown