[PATCH] D77915: [Debugify] Strip added metadata in the -debugify-each pipeline

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 12:26:47 PDT 2020


aprantl added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/Debugify.cpp:203
+  // Strip out the module-level Debug Info Version metadata.
+  // FIXME: There must be an easier way to remove an operand from a NamedMDNode.
+  NamedMDNode *NMD = M.getModuleFlagsMetadata();
----------------
I don't think there is, but this could become a helper in MDNode.h


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77915/new/

https://reviews.llvm.org/D77915





More information about the llvm-commits mailing list