[llvm] [RemoveDIs] Add DPLabels support [3a/3] (PR #82633)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 23 02:27:56 PST 2024


================
@@ -157,6 +157,11 @@ class DbgRecord : public ilist_node<DbgRecord> {
   ~DbgRecord() = default;
 };
 
+inline raw_ostream &operator<<(raw_ostream &OS, const DbgRecord &R) {
+  R.print(OS);
+  return OS;
+}
+
----------------
SLTozer wrote:

One more thing, since `DbgRecord::print` already dispatches, we could simply replace the `DPValue` operator with this, right?

https://github.com/llvm/llvm-project/pull/82633


More information about the llvm-commits mailing list