aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-10 23:55:07 +0000
committerDan Gohman <gohman@apple.com>2008-03-10 23:55:07 +0000
commitac9dff686f1ba2871d4b2910d15f310d01757758 (patch)
tree3c2caa1751c9d2bffcfdf02c98ee7138a1bc7b22
parent405fba12ce4874e0b599b19168b1d29d1c64ffab (diff)
Use utostr instead of a stringstream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48198 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/ParameterAttributes.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/VMCore/ParameterAttributes.cpp b/lib/VMCore/ParameterAttributes.cpp
index 2f754306ba..bebee3e3d7 100644
--- a/lib/VMCore/ParameterAttributes.cpp
+++ b/lib/VMCore/ParameterAttributes.cpp
@@ -13,8 +13,8 @@
#include "llvm/ParamAttrsList.h"
#include "llvm/DerivedTypes.h"
+#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/ManagedStatic.h"
-#include <sstream>
using namespace llvm;
@@ -70,10 +70,8 @@ ParamAttrsList::getParamAttrsText(ParameterAttributes Attrs) {
if (Attrs & ParamAttr::ReadOnly)
Result += "readonly ";
if (Attrs & ParamAttr::Alignment) {
- std::stringstream s;
- s << ((Attrs & ParamAttr::Alignment) >> 16);
Result += "align ";
- Result += s.str();
+ Result += utostr((Attrs & ParamAttr::Alignment) >> 16);
Result += " ";
}
return Result;