diff options
author | Dan Gohman <gohman@apple.com> | 2007-07-02 14:53:37 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-07-02 14:53:37 +0000 |
commit | a6900c7ad9752a27e2e3b1bd78b2af3b1381176d (patch) | |
tree | 9cf6232f239b788b5c5377242dbf2dd6fd561f18 /include/llvm | |
parent | 0142677fe21b177a885a6843088a92cee754fce5 (diff) | |
download | external_llvm-a6900c7ad9752a27e2e3b1bd78b2af3b1381176d.zip external_llvm-a6900c7ad9752a27e2e3b1bd78b2af3b1381176d.tar.gz external_llvm-a6900c7ad9752a27e2e3b1bd78b2af3b1381176d.tar.bz2 |
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/LoopPass.h | 4 | ||||
-rw-r--r-- | include/llvm/CallGraphSCCPass.h | 2 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineFunctionPass.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index 7a820cc..08c2bcb 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -29,9 +29,9 @@ class Function; class LoopPass : public Pass { public: - LoopPass(intptr_t pid) : Pass(pid) {} + explicit LoopPass(intptr_t pid) : Pass(pid) {} - // runOnLoop - THis method should be implemented by the subclass to perform + // runOnLoop - This method should be implemented by the subclass to perform // whatever action is necessary for the specfied Loop. virtual bool runOnLoop (Loop *L, LPPassManager &LPM) = 0; virtual bool runOnFunctionBody (Function &F, LPPassManager &LPM) { diff --git a/include/llvm/CallGraphSCCPass.h b/include/llvm/CallGraphSCCPass.h index 90894c2..2bc163d 100644 --- a/include/llvm/CallGraphSCCPass.h +++ b/include/llvm/CallGraphSCCPass.h @@ -31,7 +31,7 @@ class PMStack; struct CallGraphSCCPass : public Pass { - CallGraphSCCPass(intptr_t pid) : Pass(pid) {} + explicit CallGraphSCCPass(intptr_t pid) : Pass(pid) {} /// doInitialization - This method is called before the SCC's of the program /// has been processed, allowing the pass to do initialization as necessary. diff --git a/include/llvm/CodeGen/MachineFunctionPass.h b/include/llvm/CodeGen/MachineFunctionPass.h index 7429e7b..9a8d29b 100644 --- a/include/llvm/CodeGen/MachineFunctionPass.h +++ b/include/llvm/CodeGen/MachineFunctionPass.h @@ -26,7 +26,7 @@ namespace llvm { struct MachineFunctionPass : public FunctionPass { - MachineFunctionPass(intptr_t ID) : FunctionPass(ID) {} + explicit MachineFunctionPass(intptr_t ID) : FunctionPass(ID) {} /// runOnMachineFunction - This method must be overloaded to perform the /// desired machine code transformation or analysis. |