Teach raw_ostream to accept SmallString.
authorYaron Keren <yaron.keren@gmail.com>
Tue, 10 Mar 2015 07:33:23 +0000 (07:33 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 10 Mar 2015 07:33:23 +0000 (07:33 +0000)
commit1132d0cc5bfd56c7fedab7c88c346958693a2f1c
treed3b5cae481167c5f3d8691e005a4dedfef2f4f16
parent3a3665fd38a3522f5c014d36d8dd0943dd5762d2
Teach raw_ostream to accept SmallString.

Saves adding .str() call to any raw_ostream << SmallString usage
and a small step towards making .str() consistent in the ADTs by
removing one of the SmallString::str() use cases, discussion at

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141013/240026.html

I'll update the Phabricator patch http://reviews.llvm.org/D6372
for review of the Twine SmallString support, it's more complex
than this one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231763 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/raw_ostream.h
lib/IR/AsmWriter.cpp
lib/Support/APInt.cpp
tools/bugpoint/Miscompilation.cpp
utils/TableGen/AsmWriterEmitter.cpp
utils/TableGen/DAGISelMatcherEmitter.cpp