[llvm-commits] [llvm] r155297 - /llvm/trunk/include/llvm/ADT/SmallString.h

Chris Lattner sabre at nondot.org
Sat Apr 21 14:02:03 PDT 2012


Author: lattner
Date: Sat Apr 21 16:02:03 2012
New Revision: 155297

URL: http://llvm.org/viewvc/llvm-project?rev=155297&view=rev
Log:
stop hiding SmallVector's append that takes a count + element.


Modified:
    llvm/trunk/include/llvm/ADT/SmallString.h

Modified: llvm/trunk/include/llvm/ADT/SmallString.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallString.h?rev=155297&r1=155296&r2=155297&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallString.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallString.h Sat Apr 21 16:02:03 2012
@@ -45,7 +45,7 @@
   /// @{
 
   /// 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 @@
   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) {





More information about the llvm-commits mailing list