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
diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index 7d72b0c..9bf0b1a 100644
--- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
@@ -867,7 +867,7 @@
SmallString<40> S;
ptrMask.toStringUnsigned(S);
- O << ") & " << S.c_str() << ')';
+ O << ") & " << S.str() << ')';
break;
}
case Instruction::Add:
@@ -1286,7 +1286,7 @@
SmallString<40> S;
CI->getValue().toStringUnsigned(S, 16);
O.PadToColumn(TAI->getCommentColumn());
- O << TAI->getCommentString() << " 0x" << S.c_str();
+ O << TAI->getCommentString() << " 0x" << S.str();
}
}
O << '\n';