Add new getLibFunc method to TargetLibraryInfo.
authorBob Wilson <bob.wilson@apple.com>
Fri, 3 Aug 2012 04:06:22 +0000 (04:06 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 3 Aug 2012 04:06:22 +0000 (04:06 +0000)
commitd1e672e0234b99dbff78baed0e47d033cf963abe
treeabe8533c09c20054be9e0d14ccb1aec74f4dc2c2
parent2946549a2817681f9117662139cc0f2241939965
Add new getLibFunc method to TargetLibraryInfo.

This just provides a way to look up a LibFunc::Func enum value for a
function name.  Alphabetize the enums and function names so we can use a
binary search.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161231 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLibraryInfo.h
lib/Target/TargetLibraryInfo.cpp