This is an archive of the discontinued LLVM Phabricator instance.

[DebugInfo] Support for DW_OP_implicit_pointer (for mem2reg optimization)
Needs ReviewPublic

Authored by alok on Nov 18 2019, 3:40 AM.

Details

Summary

This patch (8/N) stems from D69787

Summary:

  Just invoked salvaging debug info function before deleting the instructions.

Testing:

  - Added unit tests for validation of LLVM IR and object file thru llvm-dwarfdump
  - check-llvm, and an end-to-end test using gnu GDB to debug an optimized
      program (LLDB need to be enhanced to support).
  - check-debuginfo (the debug info integration tests)

Diff Detail