diff options
author | Dan Gohman <gohman@apple.com> | 2007-05-11 21:04:48 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-05-11 21:04:48 +0000 |
commit | 1031c6f220b64ce4a18e6b2d9c6dfc3a43eba37f (patch) | |
tree | 3efce47aecf392cfa25fee1eb781fca6d7880362 /include | |
parent | b96039e4b9f167b7ad9196411c14bacbffb3991b (diff) | |
download | external_llvm-1031c6f220b64ce4a18e6b2d9c6dfc3a43eba37f.zip external_llvm-1031c6f220b64ce4a18e6b2d9c6dfc3a43eba37f.tar.gz external_llvm-1031c6f220b64ce4a18e6b2d9c6dfc3a43eba37f.tar.bz2 |
Add explicit keywords to several constructors that now have one argument.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36992 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Pass.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index b5c9f8d..a371165 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -86,7 +86,7 @@ class Pass { void operator=(const Pass&); // DO NOT IMPLEMENT Pass(const Pass &); // DO NOT IMPLEMENT public: - Pass(intptr_t pid) : Resolver(0), PassID(pid) {} + explicit Pass(intptr_t pid) : Resolver(0), PassID(pid) {} virtual ~Pass(); /// getPassName - Return a nice clean name for a pass. This usually @@ -231,7 +231,7 @@ public: return PMT_ModulePassManager; } - ModulePass(intptr_t pid) : Pass(pid) {} + explicit ModulePass(intptr_t pid) : Pass(pid) {} // Force out-of-line virtual method. virtual ~ModulePass(); }; @@ -256,7 +256,7 @@ public: /// virtual bool runOnModule(Module &M) { return false; } - ImmutablePass(intptr_t pid) : ModulePass(pid) {} + explicit ImmutablePass(intptr_t pid) : ModulePass(pid) {} // Force out-of-line virtual method. virtual ~ImmutablePass(); }; @@ -272,7 +272,7 @@ public: /// class FunctionPass : public Pass { public: - FunctionPass(intptr_t pid) : Pass(pid) {} + explicit FunctionPass(intptr_t pid) : Pass(pid) {} /// doInitialization - Virtual method overridden by subclasses to do /// any necessary per-module initialization. @@ -323,7 +323,7 @@ public: /// class BasicBlockPass : public Pass { public: - BasicBlockPass(intptr_t pid) : Pass(pid) {} + explicit BasicBlockPass(intptr_t pid) : Pass(pid) {} /// doInitialization - Virtual method overridden by subclasses to do /// any necessary per-module initialization. |