Resubmit "Add support for advanced number formatting."
authorZachary Turner <zturner@google.com>
Sat, 29 Oct 2016 00:27:22 +0000 (00:27 +0000)
committerZachary Turner <zturner@google.com>
Sat, 29 Oct 2016 00:27:22 +0000 (00:27 +0000)
commit5b2243e8840b5cac1a9b0068b1cfbef15067af3a
tree3a9e2ca0b044e6f9e663e1ea989fcf88c4044913
parent7be6b4963cfa5bf412be9f35aede7957397632b1
Resubmit "Add support for advanced number formatting."

This resubmits r284436 and r284437, which were reverted in
r284462 as they were breaking the AArch64 buildbot.

The breakage on AArch64 turned out to be a miscompile which is
still not fixed, but is actively tracked at llvm.org/pr30748.

This resubmission re-writes the code in a way so as to make the
miscompile not happen.

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