mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-19 17:33:29 +00:00
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:
parent
b96039e4b9
commit
1031c6f220
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user