[llvm-commits] [PATCH] De-dupe llvm.global_dtors append logic in ProfilingUtils.cpp

Matt Johnson johnso87 at crhc.illinois.edu
Sat May 19 11:22:29 PDT 2012


Ping?  The original patch still applies cleanly to ToT :)
Thanks,
Matt

On 05/05/2012 03:21 PM, Matt Johnson wrote:
> The profiling code has a helper function to append a user-specified
> Function* to llvm.global_dtors. There's a helper function to do the same
> in Transforms/Utils/ModuleUtils.h. The attached patch refactors
> ProfilingUtils.cpp to use the helper instead.
>
> There are no test cases for GCOV profiling (the only client of the
> refactored function) that I can find, so I ran a couple examples by
> hand, and the patched version's instrumented IR matches the original.
> The patched version also passes make check-all like the original.
>
> -Matt



More information about the llvm-commits mailing list