From: Yaron Keren Date: Wed, 15 Apr 2015 11:27:32 +0000 (+0000) Subject: Clarify that Twine::toVector *appends* the Twine to the given SmallString. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=97bf08c212891cdbb7a9318c882b5d393227cfcc;p=oota-llvm.git Clarify that Twine::toVector *appends* the Twine to the given SmallString. That's the way it works now, since toVector does not clear the given SmallString before printing to it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235000 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/Twine.h b/include/llvm/ADT/Twine.h index 51bb18dd6e6..fbe5b655ae7 100644 --- a/include/llvm/ADT/Twine.h +++ b/include/llvm/ADT/Twine.h @@ -430,7 +430,7 @@ namespace llvm { /// Return the twine contents as a std::string. std::string str() const; - /// Write the concatenated string into the given SmallString or SmallVector. + /// Append the concatenated string into the given SmallString or SmallVector. void toVector(SmallVectorImpl &Out) const; /// This returns the twine as a single StringRef. This method is only valid