commit | b357e06f672996400343d38b08014a5b6a7d5b2d | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Wed Jan 13 12:45:23 2010 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Wed Jan 13 12:45:23 2010 +0000 |
tree | 22907ea5714f0dd34cac34ec6ae92dcd6642c5f2 | |
parent | 81d22d87de93f501f90f55b6bbc63f5dd286797a [diff] |
Introduce Twine::toStringRef, a variant of toVector which avoids the copy if the twine can be represented as a single StringRef. Use the new methode to simplify some twine users. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93317 91177308-0d34-0410-b5e6-96231b3b80d8