InstrProf: Fix display of large numbers in llvm-cov
authorJustin Bogner <mail@justinbogner.com>
Wed, 13 May 2015 22:41:48 +0000 (22:41 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 13 May 2015 22:41:48 +0000 (22:41 +0000)
commit98f0f26fdfa3a43daa95587378de355e27d5dfeb
treebfba2aa4783e0681e7524b1bb510ff2f9cb7287e
parent33bf03ed89750a5ac6583ed4b12e71a8517813f4
InstrProf: Fix display of large numbers in llvm-cov

llvm-cov was truncating numbers that were larger than a particular
fixed width, which is as confusing as it is useless. Instead, we use
engineering notation with SI prefix for magnitude.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237307 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-cov/Inputs/lineExecutionCounts.proftext
test/tools/llvm-cov/Inputs/regionMarkers.proftext
test/tools/llvm-cov/showLineExecutionCounts.cpp
test/tools/llvm-cov/showRegionMarkers.cpp
tools/llvm-cov/SourceCoverageView.cpp