This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Support for DW_OP_implicit_pointer (for temp references & dynamic allocations)
Needs ReviewPublic

Authored by alok on Jan 1 2020, 10:23 AM.



This is a POC patch. Before review, it needs more maturity.

This patch (10/N) stems from D69787

This enables debugger (using DW_OP_implicit_pointer) to display de-referenced value of pointer in case temporary is optimized out. It happens in case of reference or dynamic allocation.


-Added unit test for validation thru llvm IR
-check-llvm (LLDB need to be modifed to support this)
-check-debuginfo (the debug info integration tests)

Diff Detail