summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/ParameterAttributes.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-05 15:51:44 +0000
committerDan Gohman <gohman@apple.com>2008-08-05 15:51:44 +0000
commit1a70bcc38833984533c06e81f3f392521b25f7a2 (patch)
tree32aa00c8627985da5fbabc232263a7e9480b71eb /llvm/lib/VMCore/ParameterAttributes.cpp
parent3da016d13748fd793e1e6b3bcbd6a1f25564a4de (diff)
downloadbcm5719-llvm-1a70bcc38833984533c06e81f3f392521b25f7a2.tar.gz
bcm5719-llvm-1a70bcc38833984533c06e81f3f392521b25f7a2.zip
Fix the AsmWriter to not print extra spaces after parameter attributes.
llvm-svn: 54351
Diffstat (limited to 'llvm/lib/VMCore/ParameterAttributes.cpp')
-rw-r--r--llvm/lib/VMCore/ParameterAttributes.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/ParameterAttributes.cpp b/llvm/lib/VMCore/ParameterAttributes.cpp
index b5fb832fde6..d16f54de23a 100644
--- a/llvm/lib/VMCore/ParameterAttributes.cpp
+++ b/llvm/lib/VMCore/ParameterAttributes.cpp
@@ -52,6 +52,8 @@ std::string ParamAttr::getAsString(ParameterAttributes Attrs) {
Result += utostr((Attrs & ParamAttr::Alignment) >> 16);
Result += " ";
}
+ // Trim the trailing space.
+ Result.erase(Result.end()-1);
return Result;
}
OpenPOWER on IntegriCloud