|
17 | 17 | #include "llvm/Analysis/CallGraphSCCPass.h" |
18 | 18 | #include "llvm/Analysis/LoopPass.h" |
19 | 19 | #include "llvm/Analysis/RegionPass.h" |
| 20 | +#include "llvm/Analysis/RuntimeLibcallInfo.h" |
20 | 21 | #include "llvm/Analysis/TargetLibraryInfo.h" |
21 | 22 | #include "llvm/Analysis/TargetTransformInfo.h" |
22 | 23 | #include "llvm/AsmParser/Parser.h" |
@@ -672,6 +673,11 @@ optMain(int argc, char **argv, |
672 | 673 | // Add an appropriate TargetLibraryInfo pass for the module's triple. |
673 | 674 | TargetLibraryInfoImpl TLII(ModuleTriple); |
674 | 675 |
|
| 676 | + // FIXME: Get ABI name from MCOptions |
| 677 | + RTLIB::RuntimeLibcallsInfo RTLCI(ModuleTriple, codegen::getExceptionModel(), |
| 678 | + codegen::getFloatABIForCalls(), |
| 679 | + codegen::getEABIVersion()); |
| 680 | + |
675 | 681 | // The -disable-simplify-libcalls flag actually disables all builtin optzns. |
676 | 682 | if (DisableSimplifyLibCalls) |
677 | 683 | TLII.disableAllFunctions(); |
@@ -746,7 +752,7 @@ optMain(int argc, char **argv, |
746 | 752 | // string. Hand off the rest of the functionality to the new code for that |
747 | 753 | // layer. |
748 | 754 | if (!runPassPipeline( |
749 | | - argv[0], *M, TM.get(), &TLII, Out.get(), ThinLinkOut.get(), |
| 755 | + argv[0], *M, TM.get(), &TLII, RTLCI, Out.get(), ThinLinkOut.get(), |
750 | 756 | RemarksFile.get(), Pipeline, PluginList, PassBuilderCallbacks, OK, |
751 | 757 | VK, /* ShouldPreserveAssemblyUseListOrder */ false, |
752 | 758 | /* ShouldPreserveBitcodeUseListOrder */ true, EmitSummaryIndex, |
|
0 commit comments