Call the new llvm_gcov_init function to register the environment.
authorBill Wendling <isanbard@gmail.com>
Wed, 20 Mar 2013 21:13:59 +0000 (21:13 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 20 Mar 2013 21:13:59 +0000 (21:13 +0000)
commit8640c6a5227b75666e02424e2181289692138348
tree2cab16184480653ad8640bfe954c6a917667e75e
parent1ac186e009af8496df3ecd2c5ad4918d5c53a0a3
Call the new llvm_gcov_init function to register the environment.

Use the new `llvm_gcov_init' function to register the writeout and flush
functions. The initialization function will also call `atexit' for some cleanups
and final writout calls. But it does this only once. This is better than
checking for the `main' function, because in a library that function may not
exist.
<rdar://problem/12439551>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177579 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/GCOVProfiling.cpp