[llvm] [RemoveDIs][DebugInfo] Verifier and printing fixes for DPLabel (PR #83242)

Stephen Tozer via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 02:51:47 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 {
----------------
SLTozer wrote:

This tactic is used for DebugLoc; that case specializes further for `DILocation`s though, such that we can't trivially share a definition - at the very least we wouldn't deduplicate very much code. In principle I think this could be available in a broader header, //but// imo it should be done at the point we need it rather than preemptively.

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


More information about the llvm-commits mailing list