[llvm-commits] [PATCH] De-dupe llvm.global_dtors append logic in ProfilingUtils.cpp
Matt Johnson
johnso87 at crhc.illinois.edu
Sat May 5 13:21:54 PDT 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: profiling_global_dtors_append.patch
Type: text/x-patch
Size: 2366 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120505/92461027/attachment.bin>
More information about the llvm-commits
mailing list