summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-05 01:19:12 +0000
committerDan Gohman <gohman@apple.com>2010-06-05 01:19:12 +0000
commit8613b18a5aa80b13bb8c7f470528146f009bed74 (patch)
tree8f771c53ce4791c204653f1258e9a0c896039c09 /include
parentcf296fa1629f02e63aa1264a619a65cfc66ef173 (diff)
downloadllvm-8613b18a5aa80b13bb8c7f470528146f009bed74.tar.gz
llvm-8613b18a5aa80b13bb8c7f470528146f009bed74.tar.bz2
llvm-8613b18a5aa80b13bb8c7f470528146f009bed74.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineFunctionPass.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/MachineFunctionPass.h b/include/llvm/CodeGen/MachineFunctionPass.h
index 1a2b12972a..685e86824c 100644
--- a/include/llvm/CodeGen/MachineFunctionPass.h
+++ b/include/llvm/CodeGen/MachineFunctionPass.h
@@ -34,9 +34,6 @@ protected:
explicit MachineFunctionPass(intptr_t ID) : FunctionPass(ID) {}
explicit MachineFunctionPass(void *ID) : FunctionPass(ID) {}
- /// createPrinterPass - Get a machine function printer pass.
- Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const;
-
/// runOnMachineFunction - This method must be overloaded to perform the
/// desired machine code transformation or analysis.
///
@@ -51,7 +48,11 @@ protected:
virtual void getAnalysisUsage(AnalysisUsage &AU) const;
private:
- bool runOnFunction(Function &F);
+ /// createPrinterPass - Get a machine function printer pass.
+ virtual Pass *createPrinterPass(raw_ostream &O,
+ const std::string &Banner) const;
+
+ virtual bool runOnFunction(Function &F);
};
} // End llvm namespace