In gcov profiling, give all functions an extra unified return block. This is
authorNick Lewycky <nicholas@mxc.ca>
Thu, 21 Apr 2011 03:18:00 +0000 (03:18 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 21 Apr 2011 03:18:00 +0000 (03:18 +0000)
commita4c4c0e1298f4dd9791eff2bae857e7be6d0ab56
tree6bb30d126348fe0f4cfca62d01cd74c1619e2d38
parent17df2c3240837b4382898ead8c3ead407a338520
In gcov profiling, give all functions an extra unified return block. This is
necessary since gcov counts transitions between blocks. It can't see if you've
run every line in a straight-line function, so we add an edge for it to notice.

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