make all Emit*() functions consult the TargetLibraryInfo information before creating a call to a library function.

Update all clients to pass the TLI information around.
Previous draft reviewed by Eli.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nuno Lopes
2012-07-25 16:46:31 +00:00
parent c338fe0828
commit 51004dff92
7 changed files with 154 additions and 81 deletions

View File

@@ -133,7 +133,8 @@ const char* TargetLibraryInfo::StandardNames[LibFunc::NumLibFuncs] =
"__cxa_atexit",
"__cxa_guard_abort",
"__cxa_guard_acquire",
"__cxa_guard_release"
"__cxa_guard_release",
"__memcpy_chk"
};
/// initialize - Initialize the set of available library functions based on the