diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-07 01:25:32 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-07 01:25:32 +0000 |
commit | 8d570bf8e9eb41e2f1c283bd67cc58514b0c429a (patch) | |
tree | a5767e32f894d3dce54a582928f23555941726e6 /include/llvm | |
parent | 4afefdec65f198fad803fa8f9f994663488dd608 (diff) | |
download | external_llvm-8d570bf8e9eb41e2f1c283bd67cc58514b0c429a.zip external_llvm-8d570bf8e9eb41e2f1c283bd67cc58514b0c429a.tar.gz external_llvm-8d570bf8e9eb41e2f1c283bd67cc58514b0c429a.tar.bz2 |
Remove assignPassManager's default arguments. It's really
confusing to have different arguments for the same virtual
function at different levels of the class hierarchy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/LoopPass.h | 2 | ||||
-rw-r--r-- | include/llvm/CallGraphSCCPass.h | 2 | ||||
-rw-r--r-- | include/llvm/Pass.h | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index 0d92de7..1e59b96 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -58,7 +58,7 @@ public: /// Assign pass manager to manage this pass virtual void assignPassManager(PMStack &PMS, - PassManagerType PMT = PMT_LoopPassManager); + PassManagerType PMT); /// Return what kind of Pass Manager can manage this pass. virtual PassManagerType getPotentialPassManagerType() const { diff --git a/include/llvm/CallGraphSCCPass.h b/include/llvm/CallGraphSCCPass.h index 5fa8b0e..7154aa3 100644 --- a/include/llvm/CallGraphSCCPass.h +++ b/include/llvm/CallGraphSCCPass.h @@ -63,7 +63,7 @@ public: /// Assign pass manager to manager this pass virtual void assignPassManager(PMStack &PMS, - PassManagerType PMT =PMT_CallGraphPassManager); + PassManagerType PMT); /// Return what kind of Pass Manager can manage this pass. virtual PassManagerType getPotentialPassManagerType() const { diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 70d692d..4cbf27b 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -119,7 +119,7 @@ public: /// Each pass is responsible for assigning a pass manager to itself. /// PMS is the stack of available pass manager. virtual void assignPassManager(PMStack &, - PassManagerType = PMT_Unknown) {} + PassManagerType) {} /// Check if available pass managers are suitable for this pass or not. virtual void preparePassManager(PMStack &); @@ -225,7 +225,7 @@ public: virtual bool runOnModule(Module &M) = 0; virtual void assignPassManager(PMStack &PMS, - PassManagerType T = PMT_ModulePassManager); + PassManagerType T); /// Return what kind of Pass Manager can manage this pass. virtual PassManagerType getPotentialPassManagerType() const; @@ -307,7 +307,7 @@ public: bool run(Function &F); virtual void assignPassManager(PMStack &PMS, - PassManagerType T = PMT_FunctionPassManager); + PassManagerType T); /// Return what kind of Pass Manager can manage this pass. virtual PassManagerType getPotentialPassManagerType() const; @@ -364,7 +364,7 @@ public: bool runOnFunction(Function &F); virtual void assignPassManager(PMStack &PMS, - PassManagerType T = PMT_BasicBlockPassManager); + PassManagerType T); /// Return what kind of Pass Manager can manage this pass. virtual PassManagerType getPotentialPassManagerType() const; |