summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2013-03-20 21:11:47 +0000
committerBill Wendling <isanbard@gmail.com>2013-03-20 21:11:47 +0000
commit51a6ff57995ee07378b7a87c45e61d48c8363731 (patch)
treecb7a0a823fd89938f43a96e116d1e6618dfacc20 /llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp
parentfb9126578ec3b320272da281ce60aa7cd11e8a06 (diff)
downloadbcm5719-llvm-51a6ff57995ee07378b7a87c45e61d48c8363731.tar.gz
bcm5719-llvm-51a6ff57995ee07378b7a87c45e61d48c8363731.zip
Create a coverage initialization function.
This function replaces the call of `atexit' from being generated in the compile units. Basically, it registers the "writeout" and "flush" functions (if present). It will generate calls to the `atexit' function for cleanups and final writeout functions, but only once. This is better than checking for `main', because a library may not have a `main' function in it. <rdar://problem/12439551> llvm-svn: 177578
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud