stop hiding SmallVector's append that takes a count + element.
authorChris Lattner <sabre@nondot.org>
Sat, 21 Apr 2012 21:02:03 +0000 (21:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Apr 2012 21:02:03 +0000 (21:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155297 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/SmallString.h

index 199783ba38990cb7c8fa3586642f7bdf3cc102e8..c6f0a5bf1542a524427587d3a3b3e7fa805d9557 100644 (file)
@@ -45,7 +45,7 @@ public:
   /// @{
 
   /// Assign from a repeated element
-  void assign(unsigned NumElts, char Elt) {
+  void assign(size_t NumElts, char Elt) {
     this->SmallVectorImpl<char>::assign(NumElts, Elt);
   }
 
@@ -77,6 +77,11 @@ public:
   void append(in_iter S, in_iter E) {
     SmallVectorImpl<char>::append(S, E);
   }
+  
+  void append(size_t NumInputs, char Elt) {
+    SmallVectorImpl<char>::append(NumInputs, Elt);
+  }
+
 
   /// Append from a StringRef
   void append(StringRef RHS) {