Implement the indirect counter increment code in a better way. Instead of
authorBill Wendling <isanbard@gmail.com>
Mon, 28 May 2012 06:10:56 +0000 (06:10 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 28 May 2012 06:10:56 +0000 (06:10 +0000)
commit77b19134104c3e96424dc010f2b69c3faf580e68
tree98ad84f042cb7de6acb92c2079d32b4491d740f0
parentd509d0b532ec2358b3f341d4a4cd1411cb8b5db2
Implement the indirect counter increment code in a better way. Instead of
replicating the code for every place it's needed, we instead generate a function
that does that for us. This function is local to the executable, so there
shouldn't be any writing violations.

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