Twines: Support numeric conversion directly (uitostr, etc).
authorDaniel Dunbar <daniel@zuster.org>
Wed, 29 Jul 2009 07:08:44 +0000 (07:08 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 29 Jul 2009 07:08:44 +0000 (07:08 +0000)
commit763457e70bc9c5c2def89d24a133808b8a971f9f
tree377376c3b2be90bda1f666bec5aec817ffe5df1b
parent78a3dd8fe141f98aaf8fbd92cfb7c97d4ddf19d6
Twines: Support numeric conversion directly (uitostr, etc).
 - Provides static constructors for doing number to string conversions without
   using temporaries.

 - There are several ways to do this, I think given the Twine constraints this
   is the simplest one.

 - One FIXME for fast number -> hex conversion.

 - Added another comment on one last major bit of perf work Twines need, which
   is to make raw_svector_ostream more efficient.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77445 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Twine.h
lib/Support/Twine.cpp
unittests/ADT/TwineTest.cpp