Skip to content
Commit 1126534d authored by Chris Lattner's avatar Chris Lattner
Browse files

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
parent 33535b32
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment