Tweak IRBuilder to explicitly call the setName(const char*) method on Value
authorChris Lattner <sabre@nondot.org>
Fri, 27 Jun 2008 18:49:21 +0000 (18:49 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 27 Jun 2008 18:49:21 +0000 (18:49 +0000)
commit25b825b3b848eeb25d49a51f0c78a16db7677465
tree762afc8ed30c295df299bd5f755fe039ab790a1a
parent5e950627f9e3b382edcce797b03d968af6717c0b
Tweak IRBuilder to explicitly call the setName(const char*) method on Value
instead of passing the name into the instruction ctors.  Since most
instruction ctors take their name as an std::string, this avoids copying the
string to the heap and a malloc and free.

Patch by Pratik Solanki!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52832 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/IRBuilder.h