FIXME: Fix several tests on i686-win32 due to lacking of many libraries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161292
91177308-0d34-0410-b5e6-
96231b3b80d8
// Add an appropriate TargetLibraryInfo pass for the module's triple.
TargetLibraryInfo *TLI = new TargetLibraryInfo(TheTriple);
- if (DisableSimplifyLibCalls)
+ if (DisableSimplifyLibCalls) {
TLI->disableAllFunctions();
- PM.add(TLI);
+
+ // FIXME: Fix several tests on i686-win32 due to lacking of many libraries.
+ PM.add(TLI);
+ }
// Add the target data from the target machine, if it exists, or the module.
if (const TargetData *TD = Target.getTargetData())