[llvm] [DLCov][NFC] Propagate annotated DebugLocs through transformations (PR #138047)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Wed May 28 03:55:22 PDT 2025


================
@@ -112,12 +112,18 @@ class FMFSource {
 /// Common base class shared among various IRBuilders.
 class IRBuilderBase {
   /// Pairs of (metadata kind, MDNode *) that should be added to all newly
-  /// created instructions, like !dbg metadata.
+  /// created instructions, excluding !dbg metadata, which is stored in the
+  // StoredDL field.
   SmallVector<std::pair<unsigned, MDNode *>, 2> MetadataToCopy;
+  // The DebugLoc that will be applied to instructions inserted by this builder.
----------------
OCHyams wrote:

nit `///`

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


More information about the llvm-commits mailing list