Remove dynamic allocation/indirection from GCOVBlocks owned by GCOVFunction
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 22 Dec 2014 23:12:42 +0000 (23:12 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 22 Dec 2014 23:12:42 +0000 (23:12 +0000)
commitb39244dca3aed4a2d359dd4f760d10bb264ad9be
tree0f186b2a60f45be5bbec826ef6ffad57f967d3ed
parentf5a21eaa186efd2999b357de7b57e261f72a169b
Remove dynamic allocation/indirection from GCOVBlocks owned by GCOVFunction

Since these are all created in the DenseMap before they are referenced,
there's no problem with pointer validity by the time it's required. This
removes another use of DeleteContainerSeconds/manual memory management
which I'm cleaning up from time to time.

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