[LLVMdev] Integer to string
Zonr Chang
zonr.xchg at gmail.com
Wed Oct 12 08:56:44 PDT 2011
Try utostr_32/utostr/itostr defined in the llvm/ADT/StringExtras.h.
Zonr
On Wed, Oct 12, 2011 at 8:18 PM, Pablo Barrio <p.barrio.lopez at gmail.com>wrote:
> Hi,
>
> I need to convert an integer into a string. I would normally do that in C++
> by using the StringStream class, but the LLVM coding standards discourage
> using that class. The same coding standards suggest to use llvm:StringStream
> instead, but I cannot find that class anywhere; furthermore, the header file
> where it was supposed to be (according to the coding standards) doesn't even
> exist.
>
> Is there any LLVM-native way to do that?
>
> What I want to do is to replicate a function several times and append a
> sequence number to each replica's name.
>
> Thanks ahead,
> Pablo
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111012/a46963f4/attachment.html>
More information about the llvm-dev
mailing list