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
This commit is contained in:
Dan Gohman 2007-05-11 21:04:48 +00:00
parent b96039e4b9
commit 1031c6f220

View File

@ -86,7 +86,7 @@ class Pass {
void operator=(const Pass&); // DO NOT IMPLEMENT void operator=(const Pass&); // DO NOT IMPLEMENT
Pass(const Pass &); // DO NOT IMPLEMENT Pass(const Pass &); // DO NOT IMPLEMENT
public: public:
Pass(intptr_t pid) : Resolver(0), PassID(pid) {} explicit Pass(intptr_t pid) : Resolver(0), PassID(pid) {}
virtual ~Pass(); virtual ~Pass();
/// getPassName - Return a nice clean name for a pass. This usually /// getPassName - Return a nice clean name for a pass. This usually
@ -231,7 +231,7 @@ public:
return PMT_ModulePassManager; return PMT_ModulePassManager;
} }
ModulePass(intptr_t pid) : Pass(pid) {} explicit ModulePass(intptr_t pid) : Pass(pid) {}
// Force out-of-line virtual method. // Force out-of-line virtual method.
virtual ~ModulePass(); virtual ~ModulePass();
}; };
@ -256,7 +256,7 @@ public:
/// ///
virtual bool runOnModule(Module &M) { return false; } 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. // Force out-of-line virtual method.
virtual ~ImmutablePass(); virtual ~ImmutablePass();
}; };
@ -272,7 +272,7 @@ public:
/// ///
class FunctionPass : public Pass { class FunctionPass : public Pass {
public: public:
FunctionPass(intptr_t pid) : Pass(pid) {} explicit FunctionPass(intptr_t pid) : Pass(pid) {}
/// doInitialization - Virtual method overridden by subclasses to do /// doInitialization - Virtual method overridden by subclasses to do
/// any necessary per-module initialization. /// any necessary per-module initialization.
@ -323,7 +323,7 @@ public:
/// ///
class BasicBlockPass : public Pass { class BasicBlockPass : public Pass {
public: public:
BasicBlockPass(intptr_t pid) : Pass(pid) {} explicit BasicBlockPass(intptr_t pid) : Pass(pid) {}
/// doInitialization - Virtual method overridden by subclasses to do /// doInitialization - Virtual method overridden by subclasses to do
/// any necessary per-module initialization. /// any necessary per-module initialization.