mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 04:24:00 +00:00
Switch to SmallString::str from SmallString::c_str, and remove
SmallString::c_str. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79456 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2168,7 +2168,7 @@ void APInt::toString(SmallVectorImpl<char> &Str, unsigned Radix,
|
||||
std::string APInt::toString(unsigned Radix = 10, bool Signed = true) const {
|
||||
SmallString<40> S;
|
||||
toString(S, Radix, Signed);
|
||||
return S.c_str();
|
||||
return S.str();
|
||||
}
|
||||
|
||||
|
||||
@ -2176,13 +2176,14 @@ void APInt::dump() const {
|
||||
SmallString<40> S, U;
|
||||
this->toStringUnsigned(U);
|
||||
this->toStringSigned(S);
|
||||
fprintf(stderr, "APInt(%db, %su %ss)", BitWidth, U.c_str(), S.c_str());
|
||||
errs() << "APInt(" << BitWidth << "b, "
|
||||
<< U.str() << "u " << S.str() << "s)";
|
||||
}
|
||||
|
||||
void APInt::print(raw_ostream &OS, bool isSigned) const {
|
||||
SmallString<40> S;
|
||||
this->toString(S, 10, isSigned);
|
||||
OS << S.c_str();
|
||||
OS << S.str();
|
||||
}
|
||||
|
||||
std::ostream &llvm::operator<<(std::ostream &o, const APInt &I) {
|
||||
|
Reference in New Issue
Block a user