[PATCH] D22825: Add a counter-function insertion pass

John McCall via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 26 12:54:39 PDT 2016


rjmccall added a comment.

This seems like the right approach to me; I won't review the pass parts, though.  Should we do this + the change to actually start setting the flags in one patch?


================
Comment at: lib/CodeGen/TargetPassConfig.cpp:474
@@ -472,1 +473,3 @@
+  // Insert calls to mcount-like functions.
+  addPass(createCountingFunctionInserterPass());
 }
----------------
This should only be added if the flag to add the attributes is enabled, right?


https://reviews.llvm.org/D22825





More information about the llvm-commits mailing list