llvm-cov: Added edge struct for traversal in block.

Yuchen Wu yuchenericwu at hotmail.com
Fri Nov 15 16:22:35 PST 2013


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. 		 	   		  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0022-llvm-cov-Added-edge-struct-for-traversal-in-block.patch
Type: application/octet-stream
Size: 7048 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131115/ec2c49cc/attachment.obj>


More information about the llvm-commits mailing list