[PATCH] D33886: Reduce the size of output with -print-before/after-all by avoid duplicated dump

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 11:38:10 PDT 2017


mehdi_amini added a comment.

Could be useful, but that seems a bit intrusive right now (ad-hoc hooks in Module and PassManager)



================
Comment at: lib/IR/Module.cpp:96
+  if (FuncsUnchangedAfterDump != nullptr)
+    delete FuncsUnchangedAfterDump;
 }
----------------
Why aren't you using a smart pointer?


https://reviews.llvm.org/D33886





More information about the llvm-commits mailing list