1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

add an operator= to assign to smallstring.

llvm-svn: 59715
This commit is contained in:
Chris Lattner 2008-11-20 07:09:17 +00:00
parent c4efcfdcd6
commit 527a103e8e

View File

@ -46,6 +46,11 @@ public:
}
// Extra operators.
const SmallString &operator=(const char *RHS) {
this->clear();
return *this += RHS;
}
SmallString &operator+=(const char *RHS) {
this->append(RHS, RHS+strlen(RHS));
return *this;