aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-04-21 21:02:03 +0000
committerChris Lattner <sabre@nondot.org>2012-04-21 21:02:03 +0000
commit55738761b393cc844e230a74e29edf4cdc37e9b8 (patch)
tree226072fd12c4ecfb850ea938213044309279fa0b
parentdb3461662e7945e04fe42e0d606581bba73c29dc (diff)
downloadexternal_llvm-55738761b393cc844e230a74e29edf4cdc37e9b8.zip
external_llvm-55738761b393cc844e230a74e29edf4cdc37e9b8.tar.gz
external_llvm-55738761b393cc844e230a74e29edf4cdc37e9b8.tar.bz2
stop hiding SmallVector's append that takes a count + element.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155297 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/SmallString.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallString.h b/include/llvm/ADT/SmallString.h
index 199783b..c6f0a5b 100644
--- a/include/llvm/ADT/SmallString.h
+++ b/include/llvm/ADT/SmallString.h
@@ -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) {