Skip to content
Commit 5c91f4d7 authored by Chris Lattner's avatar Chris Lattner
Browse files

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!

llvm-svn: 52832
parent 69cb7be3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment