Attributes: Don't print trailing whitespace on the function attribute comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer
2013-04-19 11:43:21 +00:00
parent db5f927020
commit e94e4ca5fd
2 changed files with 13 additions and 5 deletions

View File

@@ -482,14 +482,13 @@ unsigned AttributeSetNode::getStackAlignment() const {
std::string AttributeSetNode::getAsString(bool TargetIndependent,
bool InAttrGrp) const {
std::string Str = "";
std::string Str;
for (SmallVectorImpl<Attribute>::const_iterator I = AttrList.begin(),
E = AttrList.end(); I != E; ) {
E = AttrList.end(); I != E; ++I) {
if (TargetIndependent || !I->isStringAttribute()) {
if (I != AttrList.begin())
Str += ' ';
Str += I->getAsString(InAttrGrp);
if (++I != E) Str += " ";
} else {
++I;
}
}
return Str;