[raw_ostream] Raise some helper functions out of raw_ostream.
authorZachary Turner <zturner@google.com>
Tue, 11 Oct 2016 19:24:45 +0000 (19:24 +0000)
committerZachary Turner <zturner@google.com>
Tue, 11 Oct 2016 19:24:45 +0000 (19:24 +0000)
commit733be51dcdf4ec40171c5d747b59f6dfa010b0a1
tree7c8febe1ff5726615776a2e84ec3dd98440845cb
parent7186a4323e142301fbd858abc79a6174d83cfac9
[raw_ostream] Raise some helper functions out of raw_ostream.

Low level functionality to format numbers were embedded in the
implementation of raw_ostream.  I have need to use these through
an interface other than the overloaded stream operators, so they
need to be raised to a level that they can be used from either
raw_ostream operators or other code.

llvm-svn: 283921
llvm/include/llvm/Support/NativeFormatting.h [new file with mode: 0644]
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/NativeFormatting.cpp [new file with mode: 0644]
llvm/lib/Support/raw_ostream.cpp