<div dir="ltr">Hello everyone,
<div><br></div><div style>I have an integer and I want to convert it to StringRef in order to set metadata.</div><div style>setMetadata->(StringRef, MDNode*);</div><div style><br></div><div style>It is there a native LLVM way to do it?</div>
<div style><br></div><div style>1. In the llvm::APSInt Class is toString() method, which seems it is not for this purpose</div><div style>2. itoa and string are not part of LLVM</div><div style>3. stringstream is not part of LLVM</div>
<div style>4. to_string is not part of LLVM</div><div style>5. any casting method?</div><div style><br></div><div style>Also, I would like to get the metadata and convert it back to integer.</div><div style><br></div><div style>
Thank you !</div></div>