diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-13 07:12:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-13 07:12:06 +0000 |
commit | 1126534dce16693b7ae04847e819c99830dc25a0 (patch) | |
tree | f7a587bc98f0c154f0e804d711713a30958e57d5 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp | |
parent | 33535b32507a24a65085d4ab4681ac1b5823248e (diff) | |
download | bcm5719-llvm-1126534dce16693b7ae04847e819c99830dc25a0.tar.gz bcm5719-llvm-1126534dce16693b7ae04847e819c99830dc25a0.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
0 files changed, 0 insertions, 0 deletions