OSDN Git Service

add a missing operator
authorChris Lattner <sabre@nondot.org>
Mon, 23 Apr 2007 20:58:14 +0000 (20:58 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 23 Apr 2007 20:58:14 +0000 (20:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36375 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallString.h

index c7a292d..2818ebb 100644 (file)
@@ -49,6 +49,11 @@ public:
     this->append(RHS, RHS+strlen(RHS));
     return *this;
   }
+  SmallString &operator+=(char C) {
+    this->push_back(C);
+    return *this;
+  }
+  
 };