[llvm] [RemoveDIs][DebugInfo] Verifier and printing fixes for DPLabel (PR #83242)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 02:44:12 PST 2024
================
@@ -69,6 +69,53 @@ class DPMarker;
class DPValue;
class raw_ostream;
+/// A typed tracking MDNode reference that does not require a definition for its
+/// parameter type. Necessary to avoid including DebugInfoMetadata.h, which has
+/// a significant impact on compile times if included in this file.
+template <typename T> class DbgRecordParamRef {
+ TrackingMDNodeRef Ref;
+
+public:
+public:
+ DbgRecordParamRef() = default;
+
+ /// Construct from the templated type.
+ DbgRecordParamRef(const T *Param);
+
+ /// Construct from an \a MDNode.
+ ///
+ /// Note: if \c N does not have the template type, a verifier check will
----------------
OCHyams wrote:
nit: should `N` in the comment be `Param`?
https://github.com/llvm/llvm-project/pull/83242
More information about the llvm-commits
mailing list