Update of the gold-plugin.cpp code to match Chandler's changes (r226981)
authorSylvestre Ledru <sylvestre@debian.org>
Sat, 24 Jan 2015 13:59:08 +0000 (13:59 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 24 Jan 2015 13:59:08 +0000 (13:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227004 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index 4b3b578301d2c88557428b4f6b6991df4141a295..b80ad421f7e17d55f50ff87948a29dea69503f0c 100644 (file)
@@ -699,7 +699,7 @@ getModuleForFile(LLVMContext &Context, claimed_file &F, raw_fd_ostream *ApiFile,
 static void runLTOPasses(Module &M, TargetMachine &TM) {
   PassManager passes;
   PassManagerBuilder PMB;
-  PMB.LibraryInfo = new TargetLibraryInfo(Triple(TM.getTargetTriple()));
+  PMB.LibraryInfo = new TargetLibraryInfoImpl(Triple(TM.getTargetTriple()));
   PMB.Inliner = createFunctionInliningPass();
   PMB.VerifyInput = true;
   PMB.VerifyOutput = true;