aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-06-27 18:49:21 +0000
committerChris Lattner <sabre@nondot.org>2008-06-27 18:49:21 +0000
commit25b825b3b848eeb25d49a51f0c78a16db7677465 (patch)
tree762afc8ed30c295df299bd5f755fe039ab790a1a /include/llvm/Module.h
parent5e950627f9e3b382edcce797b03d968af6717c0b (diff)
downloadexternal_llvm-25b825b3b848eeb25d49a51f0c78a16db7677465.zip
external_llvm-25b825b3b848eeb25d49a51f0c78a16db7677465.tar.gz
external_llvm-25b825b3b848eeb25d49a51f0c78a16db7677465.tar.bz2
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 'include/llvm/Module.h')
0 files changed, 0 insertions, 0 deletions