mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 11:46:42 +00:00
Use utostr instead of a stringstream.
llvm-svn: 48198
This commit is contained in:
parent
599ff689d0
commit
13e8dd3b34
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user