mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Use utostr instead of a stringstream.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
405fba12ce
commit
ac9dff686f
@ -13,8 +13,8 @@
|
|||||||
|
|
||||||
#include "llvm/ParamAttrsList.h"
|
#include "llvm/ParamAttrsList.h"
|
||||||
#include "llvm/DerivedTypes.h"
|
#include "llvm/DerivedTypes.h"
|
||||||
|
#include "llvm/ADT/StringExtras.h"
|
||||||
#include "llvm/Support/ManagedStatic.h"
|
#include "llvm/Support/ManagedStatic.h"
|
||||||
#include <sstream>
|
|
||||||
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
@ -70,10 +70,8 @@ ParamAttrsList::getParamAttrsText(ParameterAttributes Attrs) {
|
|||||||
if (Attrs & ParamAttr::ReadOnly)
|
if (Attrs & ParamAttr::ReadOnly)
|
||||||
Result += "readonly ";
|
Result += "readonly ";
|
||||||
if (Attrs & ParamAttr::Alignment) {
|
if (Attrs & ParamAttr::Alignment) {
|
||||||
std::stringstream s;
|
|
||||||
s << ((Attrs & ParamAttr::Alignment) >> 16);
|
|
||||||
Result += "align ";
|
Result += "align ";
|
||||||
Result += s.str();
|
Result += utostr((Attrs & ParamAttr::Alignment) >> 16);
|
||||||
Result += " ";
|
Result += " ";
|
||||||
}
|
}
|
||||||
return Result;
|
return Result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user