diff options
author | Chris Lattner <sabre@nondot.org> | 2008-06-27 18:49:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-06-27 18:49:21 +0000 |
commit | 25b825b3b848eeb25d49a51f0c78a16db7677465 (patch) | |
tree | 762afc8ed30c295df299bd5f755fe039ab790a1a /lib/VMCore/Module.cpp | |
parent | 5e950627f9e3b382edcce797b03d968af6717c0b (diff) |
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
Diffstat (limited to 'lib/VMCore/Module.cpp')
0 files changed, 0 insertions, 0 deletions