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.

Details

Summary

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.

Testing:

-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