projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4379efc
)
add an operator= to assign to smallstring.
author
Chris Lattner
<sabre@nondot.org>
Thu, 20 Nov 2008 07:09:17 +0000
(07:09 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 20 Nov 2008 07:09:17 +0000
(07:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59715
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/SmallString.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/SmallString.h
b/include/llvm/ADT/SmallString.h
index b25d1eee30b125994610faf1c66173e6e12e2d3d..05b12d627e5f6be90ac8130dfb0309da5efbb546 100644
(file)
--- a/
include/llvm/ADT/SmallString.h
+++ b/
include/llvm/ADT/SmallString.h
@@
-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;