Support: Write ScaledNumbers::getRounded()

Start extracting helper functions out of -block-freq's `UnsignedFloat`
into `Support/ScaledNumber.h` with the eventual goal of moving and
renaming the class to `ScaledNumber`.

The bike shed about names is still being painted, but I'm going with
this for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211333 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2014-06-20 01:30:43 +00:00
parent c577e71bf5
commit 16e592a6fe
4 changed files with 123 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ add_llvm_unittest(SupportTests
ProcessTest.cpp
ProgramTest.cpp
RegexTest.cpp
ScaledNumberTest.cpp
SourceMgrTest.cpp
StringPool.cpp
SwapByteOrderTest.cpp