@@ -2095,37 +2095,3 @@ PreservedAnalyses LazyValueInfoPrinterPass::run(Function &F,
20952095 LVI.printLVI (F, DTree, OS);
20962096 return PreservedAnalyses::all ();
20972097}
2098-
2099- namespace {
2100- // Printer class for LazyValueInfo results.
2101- class LazyValueInfoPrinter : public FunctionPass {
2102- public:
2103- static char ID; // Pass identification, replacement for typeid
2104- LazyValueInfoPrinter () : FunctionPass(ID) {
2105- initializeLazyValueInfoPrinterPass (*PassRegistry::getPassRegistry ());
2106- }
2107-
2108- void getAnalysisUsage (AnalysisUsage &AU) const override {
2109- AU.setPreservesAll ();
2110- AU.addRequired <LazyValueInfoWrapperPass>();
2111- AU.addRequired <DominatorTreeWrapperPass>();
2112- }
2113-
2114- // Get the mandatory dominator tree analysis and pass this in to the
2115- // LVIPrinter. We cannot rely on the LVI's DT, since it's optional.
2116- bool runOnFunction (Function &F) override {
2117- dbgs () << " LVI for function '" << F.getName () << " ':\n " ;
2118- auto &LVI = getAnalysis<LazyValueInfoWrapperPass>().getLVI ();
2119- auto &DTree = getAnalysis<DominatorTreeWrapperPass>().getDomTree ();
2120- LVI.printLVI (F, DTree, dbgs ());
2121- return false ;
2122- }
2123- };
2124- }
2125-
2126- char LazyValueInfoPrinter::ID = 0 ;
2127- INITIALIZE_PASS_BEGIN (LazyValueInfoPrinter, " print-lazy-value-info" ,
2128- " Lazy Value Info Printer Pass" , false , false )
2129- INITIALIZE_PASS_DEPENDENCY(LazyValueInfoWrapperPass)
2130- INITIALIZE_PASS_END(LazyValueInfoPrinter, " print-lazy-value-info" ,
2131- " Lazy Value Info Printer Pass" , false , false )
0 commit comments