[llvm-commits] [llvm] r48198 - /llvm/trunk/lib/VMCore/ParameterAttributes.cpp
Dan Gohman
gohman at apple.com
Mon Mar 10 16:55:07 PDT 2008
Author: djg
Date: Mon Mar 10 18:55:07 2008
New Revision: 48198
URL: http://llvm.org/viewvc/llvm-project?rev=48198&view=rev
Log:
Use utostr instead of a stringstream.
Modified:
llvm/trunk/lib/VMCore/ParameterAttributes.cpp
Modified: llvm/trunk/lib/VMCore/ParameterAttributes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ParameterAttributes.cpp?rev=48198&r1=48197&r2=48198&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/ParameterAttributes.cpp (original)
+++ llvm/trunk/lib/VMCore/ParameterAttributes.cpp Mon Mar 10 18:55:07 2008
@@ -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 @@
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;
More information about the llvm-commits
mailing list