Enable printf() to iprintf() optimization for the TCE target.

Patch by Pekka Jaaskelainen. 

llvm-svn: 132774
This commit is contained in:
Duncan Sands 2011-06-09 11:11:45 +00:00
parent 889c40e2e1
commit eeb50c8fd2
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T) {
TLI.setUnavailable(LibFunc::memset_pattern16);
}
// iprintf and friends are only available on XCore.
if (T.getArch() != Triple::xcore) {
// iprintf and friends are only available on XCore and TCE.
if (T.getArch() != Triple::xcore && T.getArch() != Triple::tce) {
TLI.setUnavailable(LibFunc::iprintf);
TLI.setUnavailable(LibFunc::siprintf);
TLI.setUnavailable(LibFunc::fiprintf);