[LLVMdev] std::string

Michael Spencer bigcheesegs at gmail.com
Sat Jan 19 17:33:56 PST 2013

On Sat, Jan 19, 2013 at 5:20 PM, reed kotler <rkotler at mips.com> wrote:
> Are there any rules against using std::string or other parts of stl in llvm?

No. You can use any part of the stdlib.

There isn't much use of std::string in LLVM because it's simply not
needed. There's very little string manipulation, so StringRef is often
a much better choice. When there is a need for string manipulation,
the strings are generally very short, so SmallString is better.

- Michael Spencer

More information about the llvm-dev mailing list