mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
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
This commit is contained in:
@ -2291,7 +2291,7 @@ void APInt::dump() const {
|
||||
this->toStringUnsigned(U);
|
||||
this->toStringSigned(S);
|
||||
dbgs() << "APInt(" << BitWidth << "b, "
|
||||
<< U.str() << "u " << S.str() << "s)";
|
||||
<< U << "u " << S << "s)";
|
||||
}
|
||||
|
||||
void APInt::print(raw_ostream &OS, bool isSigned) const {
|
||||
|
Reference in New Issue
Block a user