summaryrefslogtreecommitdiff
path: root/lib/Target/TargetLibraryInfo.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-06-09 11:11:45 +0000
committerDuncan Sands <baldrick@free.fr>2011-06-09 11:11:45 +0000
commit9fe88973be6bf0f47b36f40ada87176b9d7edd4b (patch)
tree3e5a39e18e8f1853cd2af8ac5e6251c1439b6743 /lib/Target/TargetLibraryInfo.cpp
parent78a113cbff5941ac6163a3f240ea6e91cb85649a (diff)
downloadllvm-9fe88973be6bf0f47b36f40ada87176b9d7edd4b.tar.gz
llvm-9fe88973be6bf0f47b36f40ada87176b9d7edd4b.tar.bz2
llvm-9fe88973be6bf0f47b36f40ada87176b9d7edd4b.tar.xz
Enable printf() to iprintf() optimization for the TCE target.
Patch by Pekka Jaaskelainen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/TargetLibraryInfo.cpp')
-rw-r--r--lib/Target/TargetLibraryInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/TargetLibraryInfo.cpp b/lib/Target/TargetLibraryInfo.cpp
index 4b985b8c65..709dfd283f 100644
--- a/lib/Target/TargetLibraryInfo.cpp
+++ b/lib/Target/TargetLibraryInfo.cpp
@@ -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);