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;