summaryrefslogtreecommitdiffstats
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
commitfc42961f18e3d6973b62cecde6fef0b392e3e253 (patch)
treea968499b43dcacf0adc9cb339a802a4d31093dc3
parent92275427e59174699bd23fc4f31c45d6f8a63cca (diff)
downloadbcm5719-llvm-fc42961f18e3d6973b62cecde6fef0b392e3e253.tar.gz
bcm5719-llvm-fc42961f18e3d6973b62cecde6fef0b392e3e253.zip
Use utostr instead of a stringstream.
llvm-svn: 48198
-rw-r--r--llvm/lib/VMCore/ParameterAttributes.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/ParameterAttributes.cpp b/llvm/lib/VMCore/ParameterAttributes.cpp
index 2f754306bab..bebee3e3d77 100644
--- a/llvm/lib/VMCore/ParameterAttributes.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud