| commit | 1126534dce16693b7ae04847e819c99830dc25a0 | [log] [tgz] |
|---|---|---|
| author | Chris Lattner <sabre@nondot.org> | Wed Jan 13 07:12:06 2010 +0000 |
| committer | Chris Lattner <sabre@nondot.org> | Wed Jan 13 07:12:06 2010 +0000 |
| tree | f7a587bc98f0c154f0e804d711713a30958e57d5 | |
| parent | 33535b32507a24a65085d4ab4681ac1b5823248e [diff] |
add new isSingleStringRef()/getSingleStringRef() methods to twine, and use them to avoid a copy of a string in getNameWithPrefix in the common case. It seems like Value::setName and other places should use this as well? llvm-svn: 93301