diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-05 15:51:44 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-05 15:51:44 +0000 |
commit | 1a70bcc38833984533c06e81f3f392521b25f7a2 (patch) | |
tree | 32aa00c8627985da5fbabc232263a7e9480b71eb /llvm/lib/VMCore/ParameterAttributes.cpp | |
parent | 3da016d13748fd793e1e6b3bcbd6a1f25564a4de (diff) | |
download | bcm5719-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.cpp | 2 |
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; } |