[NFC][SelectionDAG][DebugInfo] Refactor DanglingDebugInfo class
authorOCHyams <orlando.hyams@sony.com>
Wed, 16 Nov 2022 10:10:24 +0000 (10:10 +0000)
committerOCHyams <orlando.hyams@sony.com>
Wed, 16 Nov 2022 10:10:24 +0000 (10:10 +0000)
commita1ac6efcb01ab8840d269056f01fb564b44c7ddc
tree3b64df92aeb8a0e94e0fd670cbd7951929a24492
parent979274465094aac11e33901b7aa4887d9751fc55
[NFC][SelectionDAG][DebugInfo] Refactor DanglingDebugInfo class

Hide the underlying DbgValueInst by adding methods to extract the necessary
information and by adding a raw_ostream &operator<< overload to print it.

Remove the DebugLoc field as this is always the same as the DbgValueInst's
DebugLoc (see D136247).

Reviewed By: StephenTozer

Differential Revision: https://reviews.llvm.org/D136249
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h