Add a new version of Module::getFunction that takes a const char* instead
authorChris Lattner <sabre@nondot.org>
Fri, 27 Jun 2008 21:09:10 +0000 (21:09 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 27 Jun 2008 21:09:10 +0000 (21:09 +0000)
commitbb0e2487185e401c7fca63d55e59343e060912a2
treeb6b4f48495081a9a79f79bab892cc0db79f63780
parent25b825b3b848eeb25d49a51f0c78a16db7677465
Add a new version of Module::getFunction that takes a const char* instead
of a std::string.  This avoids copying the string to the heap in common
cases.  Patch by Pratik Solanki!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52834 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Module.h
include/llvm/ValueSymbolTable.h
lib/VMCore/Module.cpp
lib/VMCore/ValueSymbolTable.cpp