[PATCH] D87216: [NewPM] Support --print-before/after in NPM

Jamie Schmeiser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 27 09:25:52 PDT 2020


jamieschmeiser requested changes to this revision.
jamieschmeiser added a comment.
This revision now requires changes to proceed.

The changes are specific to -print-before and -print-after (which is the intended target and this work originated before -print-changed) but could the change be made universal?  I would rather see the existing StringRef passed to all the callbacks changed rather than adding the new StringRef to specific callbacks.  This way all passes benefit and are consistent.  In particular, I would like to see this change applied to -printChanged; this came up in the reviews for that PR.  If you would rather not make it universal, then at least change all of the callbacks to also receive the new StringRef.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D87216



More information about the llvm-commits mailing list