From: Chandler Carruth <chandlerc@gmail.com> Date: Fri, 13 Feb 2015 21:10:58 +0000 (+0000) Subject: [PM] Fix a compile error I introduced in r229094 and didn't notice X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=29a861abc9ea6e11ab538ee377d233920b0e24d6;p=oota-llvm.git [PM] Fix a compile error I introduced in r229094 and didn't notice because I didn't have binutils set up properly to build the gold plugin. Fixes PR22581 which was filed because this broke the build for folks relying on the plugin. Very sorry! =] I've gotten the plugin stuff building now as well so it shouldn't keep happening. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229156 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 9d09e0f301f..2b85479d1da 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -697,7 +697,7 @@ static void runLTOPasses(Module &M, TargetMachine &TM) { passes.add(new DataLayoutPass()); passes.add(createTargetTransformInfoWrapperPass(TM.getTargetIRAnalysis())); - legacy::PassManagerBuilder PMB; + PassManagerBuilder PMB; PMB.LibraryInfo = new TargetLibraryInfoImpl(Triple(TM.getTargetTriple())); PMB.Inliner = createFunctionInliningPass(); PMB.VerifyInput = true;