Skip to content

Commit 21d2d43

Browse files
committed
Fix lld test
1 parent b406d42 commit 21d2d43

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

llvm/lib/LTO/LTOBackend.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include "llvm/Analysis/AliasAnalysis.h"
1818
#include "llvm/Analysis/CGSCCPassManager.h"
1919
#include "llvm/Analysis/ModuleSummaryAnalysis.h"
20+
#include "llvm/Analysis/RuntimeLibcallInfo.h"
2021
#include "llvm/Analysis/TargetLibraryInfo.h"
2122
#include "llvm/Bitcode/BitcodeReader.h"
2223
#include "llvm/Bitcode/BitcodeWriter.h"
@@ -446,6 +447,11 @@ static void codegen(const Config &Conf, TargetMachine *TM,
446447
legacy::PassManager CodeGenPasses;
447448
TargetLibraryInfoImpl TLII(Mod.getTargetTriple());
448449
CodeGenPasses.add(new TargetLibraryInfoWrapperPass(TLII));
450+
CodeGenPasses.add(new RuntimeLibraryInfoWrapper(
451+
Mod.getTargetTriple(), TM->Options.ExceptionModel,
452+
TM->Options.FloatABIType, TM->Options.EABIVersion,
453+
TM->Options.MCOptions.ABIName, TM->Options.VecLib));
454+
449455
// No need to make index available if the module is empty.
450456
// In theory these passes should not use the index for an empty
451457
// module, however, this guards against doing any unnecessary summary-based

0 commit comments

Comments
 (0)