llvm-cov: Added edge struct for traversal in block.
authorYuchen Wu <yuchenericwu@hotmail.com>
Tue, 3 Dec 2013 00:24:44 +0000 (00:24 +0000)
committerYuchen Wu <yuchenericwu@hotmail.com>
Tue, 3 Dec 2013 00:24:44 +0000 (00:24 +0000)
commit2331c9f887346d522826175f446129d2b055d084
treec399ff48f24d29a47efe5f62b2f65df46ee516ea
parentc4b184e229aaa35c2c7b1463a22d6fd4c9f81aec
llvm-cov: Added edge struct for traversal in block.

Added GCOVEdge which are simple structs owned by the GCOVFunction that
stores the source and destination GCOVBlocks, as well as the counts.
Changed GCOVBlocks so that it stores a vector of source GCOVEdges and a
vector of destination GCOVEdges, rather than just the block number.

Storing the block number was only useful for knowing the number of edges
and for debug info. Using a struct is useful for traversing the edges,
especially back edges which may be needed later.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196175 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/GCOV.h
lib/IR/GCOV.cpp