[llvm-cov] Use a stable sort on sub-views
authorVedant Kumar <vsk@apple.com>
Tue, 24 Oct 2017 20:03:37 +0000 (20:03 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 24 Oct 2017 20:03:37 +0000 (20:03 +0000)
commit8c07280f0e431d675da395b8b1652682e6a19b3f
treeae22ab5c94e63a51d718dc12bb3e8c4029021ec2
parent7b4eddf0eadec11db167cf594f4eff5697a967c6
[llvm-cov] Use a stable sort on sub-views

We need to use a stable sort on instantiation and expansion sub-views to
produce consistent output. Fortunately, we've gotten lucky and the tests
have checks for the stable order.

This is needed to unblock D39245. Once that lands, we'll have better
test coverage for sort non-determinism.

llvm-svn: 316490
llvm/tools/llvm-cov/SourceCoverageView.cpp