OSDN Git Service

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)
commitb53c2b0d149073788a921df3c4496b00eb93022e
tree3b5fb55e9f007403de07e078837a52adb9223ae6
parentd5b5d46b9575c567f8ce2c98ae0031f41c7b6382
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285483 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/NativeFormatting.h
lib/Support/NativeFormatting.cpp
lib/Support/raw_ostream.cpp
unittests/Support/CMakeLists.txt
unittests/Support/NativeFormatTests.cpp [new file with mode: 0644]