Remember that we have a null terminated string.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 16 Jul 2013 03:30:10 +0000 (03:30 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 16 Jul 2013 03:30:10 +0000 (03:30 +0000)
commit289e241d775565b450286a682d7e8a1a1b625f61
treee640b83af0c6f532f9fd7f98ec2e14e5c7a2ea74
parent20a91bfd362bf119a1bbaf27d19518328c5e3e90
Remember that we have a null terminated string.

This is a micro optimization. Instead of going char*->StringRef->Twine->char*,
go char*->Twine->char* and avoid having to copy the filename on the stack.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186380 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-ar/llvm-ar.cpp