llvm.org GIT mirror llvm / 8613b18
Make MachineFunctionPass::createPrinterPass private, as no subclasses should be calling it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105517 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 9 years ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3333 explicit MachineFunctionPass(intptr_t ID) : FunctionPass(ID) {}
3434 explicit MachineFunctionPass(void *ID) : FunctionPass(ID) {}
3535
36 /// createPrinterPass - Get a machine function printer pass.
37 Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const;
38
3936 /// runOnMachineFunction - This method must be overloaded to perform the
4037 /// desired machine code transformation or analysis.
4138 ///
5047 virtual void getAnalysisUsage(AnalysisUsage &AU) const;
5148
5249 private:
53 bool runOnFunction(Function &F);
50 /// createPrinterPass - Get a machine function printer pass.
51 virtual Pass *createPrinterPass(raw_ostream &O,
52 const std::string &Banner) const;
53
54 virtual bool runOnFunction(Function &F);
5455 };
5556
5657 } // End llvm namespace