forked from OSchip/llvm-project
Enable printf() to iprintf() optimization for the TCE target.
Patch by Pekka Jaaskelainen. llvm-svn: 132774
This commit is contained in:
parent
889c40e2e1
commit
eeb50c8fd2
|
@ -38,8 +38,8 @@ static void initialize(TargetLibraryInfo &TLI, const Triple &T) {
|
||||||
TLI.setUnavailable(LibFunc::memset_pattern16);
|
TLI.setUnavailable(LibFunc::memset_pattern16);
|
||||||
}
|
}
|
||||||
|
|
||||||
// iprintf and friends are only available on XCore.
|
// iprintf and friends are only available on XCore and TCE.
|
||||||
if (T.getArch() != Triple::xcore) {
|
if (T.getArch() != Triple::xcore && T.getArch() != Triple::tce) {
|
||||||
TLI.setUnavailable(LibFunc::iprintf);
|
TLI.setUnavailable(LibFunc::iprintf);
|
||||||
TLI.setUnavailable(LibFunc::siprintf);
|
TLI.setUnavailable(LibFunc::siprintf);
|
||||||
TLI.setUnavailable(LibFunc::fiprintf);
|
TLI.setUnavailable(LibFunc::fiprintf);
|
||||||
|
|
Loading…
Reference in New Issue