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)
commit1560517ec3ae50b4baab7e832e879e2ebf8f8b6b
treeca7479830b6460e1b0b7fe06cc3e8f3b25ba4f9f
parent2137c928b082dbf5ae6a56e5607114cf5891bd01
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.

llvm-svn: 157564
llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp